mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
fix msg abbreviation
This commit is contained in:
@@ -47,7 +47,7 @@ describe('Connection', function() {
|
||||
|
||||
it('as false', function() {
|
||||
const messages = [];
|
||||
console.log = (id, msg) => messages.push([id, msg]);
|
||||
console.log = (id, message) => messages.push([id, message]);
|
||||
const connection: any = new utils.common.Connection('url', {trace: false});
|
||||
connection._ws = {send: function() {}};
|
||||
connection._send(message1);
|
||||
@@ -57,7 +57,7 @@ describe('Connection', function() {
|
||||
|
||||
it('as true', function() {
|
||||
const messages = [];
|
||||
console.log = (id, msg) => messages.push([id, msg]);
|
||||
console.log = (id, message) => messages.push([id, message]);
|
||||
const connection: any = new utils.common.Connection('url', {trace: true});
|
||||
connection._ws = {send: function() {}};
|
||||
connection._send(message1);
|
||||
@@ -68,7 +68,7 @@ describe('Connection', function() {
|
||||
it('as a function', function() {
|
||||
const messages = [];
|
||||
const connection: any = new utils.common.Connection('url', {
|
||||
trace: (id, msg) => messages.push([id, msg])
|
||||
trace: (id, message) => messages.push([id, message])
|
||||
});
|
||||
connection._ws = {send: function() {}};
|
||||
connection._send(message1);
|
||||
|
||||
Reference in New Issue
Block a user