Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix relay test case fail

  • Loading branch information...
commit 7984bb3ed5c0c88108e19cfea8d8617dbe0f59a6 1 parent 0498151
@tedeh authored
View
2  test/relay.client-server.test.js
@@ -20,7 +20,7 @@ describe('jayson relay', function() {
describe('client', function() {
var back = jayson.server(support.methods, support.options);
- var client = jayson.client(back);
+ var client = jayson.client(back, support.options);
var front = jayson.server(support.methods, support.options);
// replace all methods in front server with the client
for(var name in front._methods) front.method(name, client);
View
2  test/support/client-server.js
@@ -28,7 +28,7 @@ Counter.prototype.incrementBy = function(value) {
exports.options = {
reviver: function(key, value) {
if(value && value.$class === 'counter') {
- var obj = new Counter;
+ var obj = new Counter();
for(var prop in value.$props) obj[prop] = value.$props[prop];
return obj;
}
Please sign in to comment.
Something went wrong with that request. Please try again.