update tests
This commit is contained in:
		| @@ -37,10 +37,8 @@ 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 ] | ||||
|   }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user