Skip to content

Commit

Permalink
Fixed build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shogun committed Mar 24, 2016
1 parent 353b86c commit 841c279
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "VCR_MODE=playback ./node_modules/.bin/mocha",
"posttest": "./node_modules/.bin/eslint main.js lib/*.js test/*.js",
"coverage": "VCR_MODE=playback ./node_modules/.bin/istanbul --report=html cover ./node_modules/.bin/_mocha",
"travis-ci": "VCR_MODE=playback ./node_modules/.bin/istanbul --report=lcovonly cover ./node_modules/.bin/_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls",
"travis-ci": "VCR_MODE=playback ./node_modules/.bin/istanbul --report=lcovonly cover ./node_modules/.bin/_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"docs": "./node_modules/.bin/jsdoc -c .jsdoc.json -t ./node_modules/ink-docstrap/template -R README.md -r"
},
"repository": {
Expand Down
16 changes: 6 additions & 10 deletions test/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,17 +436,13 @@ describe("side cases", function(){
// This is a file which is corrupted. To correctly recognize the threshold must be disabled.
it("https://upload.wikimedia.org/wikipedia/commons/b/b2/%27Journey_to_the_Center_of_the_Earth%27_by_%C3%89douard_Riou_38.jpg", done => {
fastimage.type("https://upload.wikimedia.org/wikipedia/commons/b/b2/%27Journey_to_the_Center_of_the_Earth%27_by_%C3%89douard_Riou_38.jpg", error => {
verify(done, () => {
expect(error.code).to.equal("UNSUPPORTED_TYPE");
expect(error.code).to.equal("UNSUPPORTED_TYPE");

fastimage.threshold(-1);
fastimage.type("https://upload.wikimedia.org/wikipedia/commons/b/b2/%27Journey_to_the_Center_of_the_Earth%27_by_%C3%89douard_Riou_38.jpg", (e, i) => {
fastimage.threshold(null);

verify(done, () => {
expect(i).to.equal("jpg");
});
});
fastimage.threshold(-1);
fastimage.type("https://upload.wikimedia.org/wikipedia/commons/b/b2/%27Journey_to_the_Center_of_the_Earth%27_by_%C3%89douard_Riou_38.jpg", (e, i) => {
fastimage.threshold(null);
expect(i).to.equal("jpg");
done();
});
});
});
Expand Down

0 comments on commit 841c279

Please sign in to comment.