Permalink
Browse files

[test] Fix failing test

  • Loading branch information...
lpinca committed Jun 25, 2018
1 parent 45d6018 commit a1832daf7ac5de45c61349d960bac9975a409048
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/transformer.base.js
View
@@ -1213,7 +1213,7 @@ module.exports = function base(transformer, transformer_name) {
});
});
it('should emit an `error` when it fails to encode the data', function (done) {
it('emits an `error` when it fails to encode the data', function (done) {
primus.on('connection', function (spark) {
var data = { foo: 'bar' };
data.recursive = data;
@@ -1222,14 +1222,14 @@ module.exports = function base(transformer, transformer_name) {
expect(err).to.not.be.a('string');
expect(err.message).to.include('JSON');
socket.end();
done();
spark.end();
});
spark.write(data);
});
var socket = new Socket(server.addr);
socket.on('end', done);
});
it('should receive querystrings', function (done) {

0 comments on commit a1832da

Please sign in to comment.