Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change deprecated should test methods

  • Loading branch information...
commit 03464d3f5b142e452cfd0e72aa667729adf35978 1 parent d3e3c5c
@tedeh authored
View
2  test/client.test.js
@@ -143,7 +143,7 @@ describe('jayson client instance', function() {
should.not.exist(err);
should.not.exist(error);
should.exist(response);
- response.should.be.a('number').and.equal(params.a + params.b);
+ response.should.be.a.Number.and.equal(params.a + params.b);
done();
});
});
View
2  test/server.test.js
@@ -66,7 +66,7 @@ describe('jayson server instance', function() {
should.exist(err.error);
should.not.exist(response);
err.error.code.should.equal(jayson.server.errors.PARSE_ERROR);
- err.error.message.should.be.a('string').and.equal(newMsg);
+ err.error.message.should.equal(newMsg);
done();
});
});
View
2  test/utils.test.js
@@ -10,7 +10,7 @@ describe('utils', function() {
it('exists', function() {
utils.should.have.property('request');
- utils.request.should.be.a('function');
+ utils.request.should.be.a.Function;
});
it('should throw a TypeError on an invalid method argument', function() {
Please sign in to comment.
Something went wrong with that request. Please try again.