diff --git a/.jshintrc b/.jshintrc index 5738b8c..3158d98 100644 --- a/.jshintrc +++ b/.jshintrc @@ -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, diff --git a/gulpfile.js b/gulpfile.js index d5d97e1..aca2dbd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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')); }); diff --git a/test/unit/image-editor.js b/test/unit/image-editor.js index 8cbbef3..42aadfd 100644 --- a/test/unit/image-editor.js +++ b/test/unit/image-editor.js @@ -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() {