coffeelint-no-focused-jasmine-specs
Version:
CoffeeLint rule to ensure that all your jasmine specs run
20 lines (15 loc) • 442 B
text/coffeescript
FOCUSED_SPECS = ['fdescribe', 'fit']
class NoFocusedJasmineSpecs
rule:
name: 'no_focused_jasmine_specs'
level: 'error'
message: 'No focused jasmine specs'
description: '''
This rule will call linting to fail if a focused (fdescribe/fit) spec is
encountered.
'''
tokens: ['IDENTIFIER']
lintToken: (token, tokenApi) ->
if token[1] in FOCUSED_SPECS
true
module.exports = NoFocusedJasmineSpecs