Skip to content

Commit

Permalink
🐛 Fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinroger committed Apr 12, 2017
1 parent 09951c1 commit 500af2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_event_socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('EventSocket', function() {
var ws = new Ws();
var client = new EventSocket(ws, 'some-topic', { streamEnabled: true });
ws.on('onsend', function(data, options, cb) {
assert.equal(data, '{"data":null}');
assert.deepStrictEqual(JSON.parse(data), { data: null });
done();
});
client.send('some/topic', { data: null });
Expand All @@ -107,7 +107,7 @@ describe('EventSocket', function() {
var ws = new Ws();
var client = new EventSocket(ws, 'some-topic', { streamEnabled: false });
ws.on('onsend', function(data, options, cb) {
assert.equal(data, '{"data":null}');
assert.deepStrictEqual(JSON.parse(data), { data: null });
done();
});
client.send('some/topic', { data: null });
Expand Down

0 comments on commit 500af2e

Please sign in to comment.