Skip to content

Commit

Permalink
Merge pull request #22 from qw3r/master
Browse files Browse the repository at this point in the history
fix(compatibility): fix test on different Node versions (v5 to v6)
  • Loading branch information
Adam Brunner committed Jun 30, 2016
2 parents c26a189 + aa9a7f0 commit 31f94d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapper.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Wrapper', function() {
yield wrapper.send();
} catch (err) {
expect(err).to.be.an.instanceof(SuiteRequestError);
expect(err.message).to.eql('Unexpected end of JSON input');
expect(err.message).to.match(/Unexpected end/);
expect(err.code).to.eql(500);
return;
}
Expand Down Expand Up @@ -131,7 +131,7 @@ describe('Wrapper', function() {
yield wrapper.send();
} catch (err) {
expect(err).to.be.an.instanceof(SuiteRequestError);
expect(err.message).to.eql('Unexpected token h in JSON at position 1');
expect(err.message).to.match(/Unexpected token/);
expect(err.code).to.eql(500);
return;
}
Expand Down

0 comments on commit 31f94d4

Please sign in to comment.