Skip to content

Commit

Permalink
💚 Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DanPurdy committed Sep 2, 2017
1 parent e3d0d9a commit 1c6197b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions tests/helpers/isNewLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ var assert = require('assert'),
gonzales = require('gonzales-pe');

var lfBlock = gonzales.createNode(
{
type: 'space',
content: '\n',
syntax: 'scss',
start: { line: 1, column: 1 },
end: { line: 2, column: 1 }
}),
{
type: 'space',
content: '\n',
syntax: 'scss',
start: { line: 1, column: 1 },
end: { line: 2, column: 1 }
}),
crlfBlock = gonzales.createNode(
{
type: 'space',
Expand Down
22 changes: 11 additions & 11 deletions tests/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ describe('sass lint', function () {
rules: {
'no-ids': 1
}}, '', function (data) {
assert.equal(1, data[0].warningCount);
assert.equal(0, data[0].errorCount);
assert.equal(1, data[0].messages.length);

assert(fileSpy.called);
assert(fileSpy.calledOnce);
assert(fileSpy.calledWithMatch({format: 'scss', filename: 'tests/dir-test/dir.scss/test.scss'}));
assert(fileSpy.neverCalledWithMatch({filename: 'tests/dir-test/dir.scss'}));
fileSpy.reset();
done();
}
assert.equal(1, data[0].warningCount);
assert.equal(0, data[0].errorCount);
assert.equal(1, data[0].messages.length);

assert(fileSpy.called);
assert(fileSpy.calledOnce);
assert(fileSpy.calledWithMatch({format: 'scss', filename: 'tests/dir-test/dir.scss/test.scss'}));
assert(fileSpy.neverCalledWithMatch({filename: 'tests/dir-test/dir.scss'}));
fileSpy.reset();
done();
}
);
});

Expand Down

0 comments on commit 1c6197b

Please sign in to comment.