Skip to content

Commit

Permalink
Fix: Expectations for cross-platform errors
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Aug 20, 2014
1 parent a02178d commit a3dd7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('`extract` function', function() {
it('should get an error when 7z gets an error', function (done) {
var api = new Api();
api.extract('test/nothere.7z', '.tmp/test', function (err) {
expect(err.message).to.eql('there is no such archive');
expect(err.message).to.contain('archive');
done();
});
});
Expand All @@ -89,7 +89,7 @@ describe('`extract` function', function() {
it('should be compatible with Promise', function (done) {
var api = new Api();
api.extract('test/nothere.7z', '.tmp/test').then(null, function (err) {
expect(err.message).to.eql('there is no such archive');
expect(err.message).to.contain('archive');
done();
});
});
Expand Down

0 comments on commit a3dd7fd

Please sign in to comment.