Fix tests to run with mocha (#389)

This commit is contained in:
Daniel Hutzel
2022-08-15 14:11:52 +02:00
committed by GitHub
parent 2a37ef8be1
commit 8ab66b4130
10 changed files with 53 additions and 51 deletions

View File

@@ -1,8 +1,9 @@
const cds = require('@sap/cds/lib')
const { GET, expect } = cds.test (__dirname+'/../hello')
describe('cap/samples - Hello world!', () => {
const { GET, expect } = cds.test (__dirname+'/../hello')
it('should say hello with class impl', async () => {
const {data} = await GET `/say/hello(to='world')`
expect(data.value).to.eql('Hello world!')