From 67c4b06c4d722416640fef18506b7db1867fe38a Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 22 Apr 2019 23:23:36 +0200 Subject: [PATCH] fix(core): update --- test/test.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/test.ts b/test/test.ts index ed2cb64..801ccc8 100644 --- a/test/test.ts +++ b/test/test.ts @@ -32,7 +32,17 @@ tap.test('create smartuniverse client', async () => { }); tap.test('should add a channel to the universe', async () => { - await testUniverse.addChannel('testChannel', 'testPassword'); + await testUniverse.addChannel( + testChannelData.channelName, + testChannelData.channelPass + ); +}); + +tap.test('should add the same channel to the client universe in the same way', async () => { + await testClientUniverse.addChannel( + testChannelData.channelName, + testChannelData.channelPass + ); }); tap.test('should get a observable correctly', async () => { @@ -43,7 +53,7 @@ tap.test('should get a observable correctly', async () => { tap.test('should send a message correctly', async () => { await testClientUniverse.sendMessage({ messageText: 'hello', - targetChannelName: 'channel1' + targetChannelName: testChannelData.channelName }); });