Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
missing_fat_arrows: fix change in cs2 wrt default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
swang committed Jul 13, 2017
1 parent e98efa9 commit 26cfd56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_missing_fat_arrows.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ runLint = (source, is_strict) ->
config[RULE].is_strict = is_strict
coffeelint.lint source, config

shouldError = (source, numErrors = 1, is_strict = false) ->
shouldError = (source, numErrors, is_strict = false) ->
topic: source
'errors for missing arrow': (source) ->
numErrors ?= 1
errors = runLint source, is_strict
assert.lengthOf errors, numErrors,
"Expected #{numErrors} errors, got #{inspect errors}"
Expand Down

0 comments on commit 26cfd56

Please sign in to comment.