Skip to content

Commit

Permalink
fix(compatibility): fix testing against different json error messages…
Browse files Browse the repository at this point in the history
… in different versions of node
  • Loading branch information
qw3r committed Jun 29, 2016
1 parent 0ffdc59 commit aa9a7f0
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 aa9a7f0

Please sign in to comment.