now sends messages correctly

This commit is contained in:
2018-03-15 01:16:16 +01:00
parent 850032bd03
commit 317a9f2189
6 changed files with 41 additions and 10 deletions

View File

@ -18,11 +18,17 @@ tap.test('add a message to the SmartUniverse', async () => {
// testing message handling
tap.test('create smartuniverse client', async () => {
testUniverseClient = new smartuniverse.UniverseClient({
serverAddress: 'localhost:8765'
serverAddress: 'http://localhost:8765'
});
expect(testUniverseClient).to.be.instanceof(smartuniverse.UniverseClient)
})
tap.test('should send a message correctly', async () => {
await testUniverseClient.sendMessage('greeting', {
anyBool: true
})
})
tap.test('should end the server correctly', async () => {
await testUniverse.stopServer();
})