gulp-json-editor
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -27,4 +27,4 @@ /* jshint node: true */ | ||
else if (typeof editor === 'object') editByXXX = editByObject; | ||
else if (typeof editor === 'undefined') throw new PluginError('gulp-json-editor', 'missing "editor function" option'); | ||
else throw new PluginError('gulp-json-editor', '"editor function" option must be function'); | ||
else if (typeof editor === 'undefined') throw new PluginError('gulp-json-editor', 'missing "editor" option'); | ||
else throw new PluginError('gulp-json-editor', '"editor" option must be a function or object'); | ||
@@ -31,0 +31,0 @@ // create through object |
{ | ||
"name": "gulp-json-editor", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A gulp plugin to edit JSON object", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -11,3 +11,3 @@ /* jshint node: true */ | ||
it('should raise error when missing option', function(done) { | ||
should(function(){jedit();}).throw('missing "editor function" option'); | ||
should(function(){jedit();}).throw('missing "editor" option'); | ||
done(); | ||
@@ -18,3 +18,3 @@ }); | ||
it('should raise error when invalid type of option', function(done) { | ||
should(function(){jedit(1);}).throw('"editor function" option must be function'); | ||
should(function(){jedit(1);}).throw('"editor" option must be a function or object'); | ||
done(); | ||
@@ -21,0 +21,0 @@ }); |
10849