Skip to content

Commit

Permalink
Brought back original test expectation - previous attempt lowered cod…
Browse files Browse the repository at this point in the history
…e coverage which is bad.
  • Loading branch information
Mat Carey committed Feb 23, 2016
1 parent 0dfe6f0 commit c1c76e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@
});

it("should return a error when the URL is a text file", function(done){
fastimage.info("http://placehold.it/robots.txt", function(error, info){
fastimage.info("https://placeholdit.imgix.net/~text?txtsize=28&bg=0099ff&txt=300%C3%97300&w=300&h=300&fm=tif", function(error, info){
verify(done, function(){
expect(info).not.to.be.ok();
expect(error).to.be.a(fastimage.FastImageError);

expect(error.code).to.equal("SERVER_ERROR");
expect(error.message).to.equal("Unexpected response from the remote host.");
expect(error.code).to.equal("UNSUPPORTED_TYPE");
expect(error.message).to.equal("Unsupported image file.");
});
});
});
Expand Down

0 comments on commit c1c76e7

Please sign in to comment.