Fix improper type tests is core test cases

This commit is contained in:
Nick O'Leary
2017-07-22 22:42:35 +01:00
parent 2aced893c6
commit 6d76918424
2 changed files with 3 additions and 2 deletions

View File

@@ -422,7 +422,8 @@ describe('websocket Node', function() {
helper.load(websocketNode, flow, function() {
getSocket('server').on('connection', function(sock) {
sock.on('message', function(msg) {
msg.should.have.length(5).and.be.a.buffer;
Buffer.isBuffer(msg).should.be.true();
msg.should.have.length(5);
done();
});
});