jshint the tests
This commit is contained in:
@@ -11,10 +11,12 @@
|
|||||||
"QUnit": false,
|
"QUnit": false,
|
||||||
"require": false,
|
"require": false,
|
||||||
"strict": false,
|
"strict": false,
|
||||||
"node": false
|
"node": false,
|
||||||
|
"ImageEditor": false,
|
||||||
|
"sessionStorage": false
|
||||||
},
|
},
|
||||||
"browserify": false,
|
"browserify": false,
|
||||||
"strict": true,
|
"strict": false,
|
||||||
"curly": true,
|
"curly": true,
|
||||||
"forin": true,
|
"forin": true,
|
||||||
"latedef": true,
|
"latedef": true,
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ gulp.task('test', ['build'], function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('lint', function() {
|
gulp.task('lint', function() {
|
||||||
return gulp.src('./src/**/*.js')
|
return gulp.src(['./src/**/*.js', './test/unit/*.js'])
|
||||||
.pipe(jshint())
|
.pipe(jshint())
|
||||||
.pipe(jshint.reporter('default'));
|
.pipe(jshint.reporter('default'));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
QUnit.module('ImageEditor');
|
QUnit.module('ImageEditor');
|
||||||
|
|
||||||
QUnit.test('should load image', function( assert ) {
|
QUnit.test('should load image', function(assert) {
|
||||||
var done = assert.async();
|
var done = assert.async();
|
||||||
var editor = new ImageEditor('canvas');
|
var editor = new ImageEditor('canvas');
|
||||||
editor.loadImage('fixtures/dog.jpg', function() {
|
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 done = assert.async();
|
||||||
var editor = new ImageEditor('canvas');
|
var editor = new ImageEditor('canvas');
|
||||||
editor.loadImage('fixtures/dog.jpg', function() {
|
editor.loadImage('fixtures/dog.jpg', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user