Skip to content

Commit

Permalink
add test for rule name if was set correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechczerniak committed Mar 27, 2016
1 parent d937d90 commit 033b3f4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,19 @@ describe( 'Core Methods: ', function() {
app.lint()
app.lint.getCall( 2 ).returned( sinon.match.same( app.done ) )
} )

it( 'should cache rule name as one of warning properties', function() {
app.config = { brackets : 'never'}
app.lint()
assert.equal( app.cache.rule, 'brackets' )

app.config = { leadingZero : 'never'}
app.lint()
assert.equal( app.cache.rule, 'leadingZero' )

// restore config
app.config = app.setConfig()
} )
} )

describe( 'Watch: ', function() {
Expand Down

0 comments on commit 033b3f4

Please sign in to comment.