Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 4f12ed3

Browse files
committed
maximumLineLength spec change: should *not* report functions stored in variables
there seems to be no real value in treating these functions differently (some discussion in #2032)
1 parent d2d3bfe commit 4f12ed3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/specs/rules/maximum-line-length.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ describe('rules/maximum-line-length', function() {
214214
expect(checker.checkString(code)).to.have.no.errors();
215215
});
216216

217-
it('should report functions stored in variables', function() {
217+
it('should not report functions stored in variables', function() {
218218
var code = 'var fn = function() {};';
219-
expect(checker.checkString(code)).to.have.one.validation.error.from('maximumLineLength');
219+
expect(checker.checkString(code)).to.have.no.errors();
220220
});
221221

222222
it('should not report functions within IIFE blocks', function() {

0 commit comments

Comments
 (0)