Files
cloud-cap-samples/hello/test/hello-world-test.js
2024-05-14 14:37:37 +02:00

11 lines
334 B
JavaScript

const cds = require ('@sap/cds')
describe('Hello world!', () => {
const {GET} = cds.test.in(__dirname,'../srv').run('serve', 'world.cds')
it('should say hello with class impl', async () => {
const {data} = await GET`/say/hello(to='world')`
expect(data.value).to.match(/Hello world.*typescript.*/i)
})
})