From dd31eea2637ce10b3a7c0662691635728547d51c Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 7 Jul 2017 22:10:03 +0200 Subject: [PATCH] update tests --- test/test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/test.ts b/test/test.ts index 33e4d13..e61ef99 100644 --- a/test/test.ts +++ b/test/test.ts @@ -37,17 +37,15 @@ tap.test('should add a socketrole', async () => { tap.test('should register a new Function', async () => { testSocketFunction1 = new smartsocket.SocketFunction({ funcName: 'testFunction1', - funcDef: (dataArg) => { - let done = smartq.defer() - done.resolve(dataArg) - return done.promise + funcDef: async (dataArg) => { + return dataArg }, allowedRoles: [ testSocketRole1 ] }) }) // class SmartsocketClient -tap.test('should react to a new websocket connection from client',async () => { +tap.test('should react to a new websocket connection from client', async () => { let done = smartq.defer() testSmartsocketClient = new smartsocket.SmartsocketClient({ port: testConfig.port,