Files
cloud-cap-samples/test/hello-world-ts.test.ts
2021-07-13 13:01:46 +02:00

14 lines
388 B
TypeScript

const testKit = require('../test')
process.env.TYPESCRIPT_SUPPORT = 'true';
const {GET} = testKit.run('serve', 'hello/world.cds')
describe('Hello world!', () => {
it('should say hello with class impl from a typescript file', async () => {
const {data} = await GET`/say/hello(to='world')`
expect(data.value).toEqual('Hello world from a typescript file!')
})
})