jshint the tests

This commit is contained in:
Martin
2017-08-05 13:40:28 +02:00
parent b5663438ec
commit b452790043
3 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -11,10 +11,12 @@
"QUnit": false,
"require": false,
"strict": false,
"node": false
"node": false,
"ImageEditor": false,
"sessionStorage": false
},
"browserify": false,
"strict": true,
"strict": false,
"curly": true,
"forin": true,
"latedef": true,
+1 -1
View File
@@ -19,7 +19,7 @@ gulp.task('test', ['build'], function() {
});
gulp.task('lint', function() {
return gulp.src('./src/**/*.js')
return gulp.src(['./src/**/*.js', './test/unit/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('default'));
});
+2 -2
View File
@@ -2,7 +2,7 @@
QUnit.module('ImageEditor');
QUnit.test('should load image', function( assert ) {
QUnit.test('should load image', function(assert) {
var done = assert.async();
var editor = new ImageEditor('canvas');
editor.loadImage('fixtures/dog.jpg', function() {
@@ -11,7 +11,7 @@
});
});
QUnit.test('should crop image', function( assert ) {
QUnit.test('should crop image', function(assert) {
var done = assert.async();
var editor = new ImageEditor('canvas');
editor.loadImage('fixtures/dog.jpg', function() {