Skip to content

Commit 239fd32

Browse files
committed
Fix linting errors
1 parent 215b079 commit 239fd32

File tree

7 files changed

+21
-7
lines changed

7 files changed

+21
-7
lines changed

test/gulp.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var helpers = require('yeoman-test');
66

77
test.before(() => {
88
var pkg = require('../package.json');
9+
910
var deps = [
1011
[helpers.createDummyGenerator(), 'statisk:gulp']
1112
];
@@ -30,7 +31,8 @@ test('creates package.json', () => {
3031

3132
test('creates comment about creation', () => {
3233
const pkg = require('../package.json');
33-
const date = (new Date).toISOString().split('T')[0]; // eslint-disable-line
34+
35+
const date = (new Date()).toISOString().split('T')[0];
3436
assert.fileContent('gulpfile.js', '// generated on ' + date + ' using ' + pkg.name + ' ' + pkg.version);
3537
});
3638

test/update.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var helpers = require('yeoman-test');
66

77
test.before(() => {
88
var pkg = require('../package.json');
9+
910
var deps = [
1011
[helpers.createDummyGenerator(), 'statisk:gulp']
1112
];
@@ -34,7 +35,8 @@ test('creates package.json', () => {
3435

3536
test('creates comment about creation', () => {
3637
const pkg = require('../package.json');
37-
const date = (new Date).toISOString().split('T')[0]; // eslint-disable-line
38+
39+
const date = (new Date()).toISOString().split('T')[0];
3840
assert.fileContent('gulpfile.js', '// generated on ' + date + ' using ' + pkg.name + ' ' + pkg.version);
3941
});
4042

test/update/aws.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var helpers = require('yeoman-test');
66

77
test.before(() => {
88
var pkg = require('../../package.json');
9+
910
var deps = [
1011
[helpers.createDummyGenerator(), 'statisk:gulp']
1112
];
@@ -34,7 +35,8 @@ test('creates package.json', () => {
3435

3536
test('creates comment about creation', () => {
3637
const pkg = require('../../package.json');
37-
const date = (new Date).toISOString().split('T')[0]; // eslint-disable-line
38+
39+
const date = (new Date()).toISOString().split('T')[0];
3840
assert.fileContent('gulpfile.js', '// generated on ' + date + ' using ' + pkg.name + ' ' + pkg.version);
3941
});
4042

test/update/babel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var helpers = require('yeoman-test');
66

77
test.before(() => {
88
var pkg = require('../../package.json');
9+
910
var deps = [
1011
[helpers.createDummyGenerator(), 'statisk:gulp']
1112
];
@@ -34,7 +35,8 @@ test('creates package.json', () => {
3435

3536
test('creates comment about creation', () => {
3637
const pkg = require('../../package.json');
37-
const date = (new Date).toISOString().split('T')[0]; // eslint-disable-line
38+
39+
const date = (new Date()).toISOString().split('T')[0];
3840
assert.fileContent('gulpfile.js', '// generated on ' + date + ' using ' + pkg.name + ' ' + pkg.version);
3941
});
4042

test/update/ghpages.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var helpers = require('yeoman-test');
66

77
test.before(() => {
88
var pkg = require('../../package.json');
9+
910
var deps = [
1011
[helpers.createDummyGenerator(), 'statisk:gulp']
1112
];
@@ -34,7 +35,8 @@ test('creates package.json', () => {
3435

3536
test('creates comment about creation', () => {
3637
const pkg = require('../../package.json');
37-
const date = (new Date).toISOString().split('T')[0]; // eslint-disable-line
38+
39+
const date = (new Date()).toISOString().split('T')[0];
3840
assert.fileContent('gulpfile.js', '// generated on ' + date + ' using ' + pkg.name + ' ' + pkg.version);
3941
});
4042

test/update/no-uploading.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var helpers = require('yeoman-test');
66

77
test.before(() => {
88
var pkg = require('../../package.json');
9+
910
var deps = [
1011
[helpers.createDummyGenerator(), 'statisk:gulp']
1112
];
@@ -34,7 +35,8 @@ test('creates package.json', () => {
3435

3536
test('creates comment about creation', () => {
3637
const pkg = require('../../package.json');
37-
const date = (new Date).toISOString().split('T')[0]; // eslint-disable-line
38+
39+
const date = (new Date()).toISOString().split('T')[0];
3840
assert.fileContent('gulpfile.js', '// generated on ' + date + ' using ' + pkg.name + ' ' + pkg.version);
3941
});
4042

test/update/rsync.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var helpers = require('yeoman-test');
66

77
test.before(() => {
88
var pkg = require('../../package.json');
9+
910
var deps = [
1011
[helpers.createDummyGenerator(), 'statisk:gulp']
1112
];
@@ -34,7 +35,8 @@ test('creates package.json', () => {
3435

3536
test('creates comment about creation', () => {
3637
const pkg = require('../../package.json');
37-
const date = (new Date).toISOString().split('T')[0]; // eslint-disable-line
38+
39+
const date = (new Date()).toISOString().split('T')[0];
3840
assert.fileContent('gulpfile.js', '// generated on ' + date + ' using ' + pkg.name + ' ' + pkg.version);
3941
});
4042

0 commit comments

Comments
 (0)