Fixed and adjusted to cds5

This commit is contained in:
Daniel
2021-04-10 13:04:33 +02:00
committed by Daniel Hutzel
parent 33cd70065a
commit 0c4658a3ef
3 changed files with 8 additions and 10 deletions

View File

@@ -20,11 +20,11 @@ describe('Messaging', ()=>{
let N=0, received=[], M=0
it ('should add messaging event handlers', ()=>{
srv.on('reviewed', (msg,next)=> { received.push(msg); return next() })
srv.on('reviewed', (msg)=> received.push(msg))
})
it ('should add more messaging event handlers', ()=>{
srv.on('reviewed', (_,next)=> { ++M; return next() })
srv.on('reviewed', ()=> ++M)
})
it ('should add review', async ()=>{