Skip to content

Commit 6ace3dd

Browse files
committed
Lint tests
1 parent b0d3014 commit 6ace3dd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"url": "https://github.com/lesshint/gulp-lesshint.git"
1313
},
1414
"scripts": {
15-
"pretest": "eslint *.js",
15+
"pretest": "eslint **/*.js",
1616
"test": "mocha"
1717
},
1818
"keywords": [

test/test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('gulp-lesshint', () => {
5555

5656
stream.on('data', () => {});
5757

58-
stream.on('error', (error) => {
58+
stream.on('error', () => {
5959
assert(false);
6060
});
6161

@@ -90,11 +90,13 @@ describe('gulp-lesshint', () => {
9090
reporterStream.on('data', () => {});
9191

9292
reporterStream.once('end', () => {
93+
/* eslint-disable no-console */
9394
assert.ok(console.log.called);
9495

9596
console.log.restore();
9697

9798
cb();
99+
/* eslint-enable no-console */
98100
});
99101

100102
lintStream.write(new File({
@@ -117,7 +119,7 @@ describe('gulp-lesshint', () => {
117119

118120
stream.on('data', () => {});
119121

120-
stream.on('error', (error) => {
122+
stream.on('error', () => {
121123
assert(false);
122124

123125
cb();

0 commit comments

Comments
 (0)