fixed support for mocha

This commit is contained in:
Daniel
2022-01-04 13:53:52 +01:00
committed by Daniel Hutzel
parent 788a101f41
commit a8345122ea
7 changed files with 48 additions and 21 deletions

View File

@@ -9,8 +9,7 @@ describe('Hello world!', () => {
})
it('should say hello with another impl', async () => {
const cds = require ('@sap/cds')
cds.serve('say').from(cds.model)
await cds.serve('say').from(cds.model)
.at('/say-again').in(cds.app)
.with(srv => {
srv.on('hello', (req) => `Hello again ${req.data.to}!`)