Skip to content

Commit

Permalink
Arrow function tests: remove lots of code duplication
Browse files Browse the repository at this point in the history
* Simplify the arrow function testing by using a helper function to check the token positions.
* Fix incorrect parameter order of the `$expected` vs `$result` parameters in `assertSame()`.
    While when the test passes, this makes no difference, it does make a difference in the error output when a test fails.
  • Loading branch information
jrfnl committed Feb 13, 2021
1 parent abc5f5f commit f3bf5f5
Showing 1 changed file with 52 additions and 220 deletions.
Loading

0 comments on commit f3bf5f5

Please sign in to comment.