Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
add a new test case
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Aug 3, 2015
1 parent f80a1a6 commit 27eb1e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions test/client_protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ describe("client protocol", function() {
});
});

it("should received { json: null }", function(done) {
client.send("test", "eecho", { json: 1 / 0 }, function(err, data) {
if(err) err.should.be.empty;
data.should.be.eql({ json: null });
done();
});
});

it("should received error", function(done) {
client.send("test", "error", {}, function(err) {
(err instanceof Error).should.be.eql(true);
Expand Down
1 change: 0 additions & 1 deletion test/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ describe("request object", function() {
req.param("c", 3).should.be.eql(3);
});
});

0 comments on commit 27eb1e1

Please sign in to comment.