jshint the tests
This commit is contained in:
@@ -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
@@ -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,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() {
|
||||
|
||||
Reference in New Issue
Block a user