fix(core): update

This commit is contained in:
2019-09-01 17:04:25 +02:00
parent e8f09c1b7a
commit 52db86c929
11 changed files with 60 additions and 28 deletions

View File

@ -37,7 +37,7 @@ tap.test('create smartuniverse client', async () => {
});
tap.test('should add a channel to the universe', async () => {
testUniverse.addChannel(testChannelData.channelName, testChannelData.channelPass);
testUniverse.addChannel(testChannelData.channelName, testChannelData.channelPass);
});
tap.test('should add the same channel to the client universe in the same way', async () => {
@ -46,7 +46,7 @@ tap.test('should add the same channel to the client universe in the same way', a
tap.test('should start the ClientUniverse', async () => {
await testClientUniverse.start();
})
});
tap.test('should get a observable correctly', async () => {
testClientChannel = testClientUniverse.getChannel(testChannelData.channelName);
@ -54,7 +54,7 @@ tap.test('should get a observable correctly', async () => {
});
tap.test('should send a message correctly', async () => {
await (testClientUniverse.getChannel(testChannelData.channelName)).sendMessage({
await testClientUniverse.getChannel(testChannelData.channelName).sendMessage({
messageText: 'hello'
});
});