Cosmetics
This commit is contained in:
@@ -2,14 +2,14 @@ process.env.CDS_TYPESCRIPT = 'true';
|
|||||||
import * as cds from '@sap/cds';
|
import * as cds from '@sap/cds';
|
||||||
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
const {GET} = cds.test.in(__dirname,'../hello').run('serve', 'world.cds')
|
const {GET} = cds.test.in(__dirname,'../hello').run('serve', 'world.cds');
|
||||||
|
|
||||||
describe('Hello world!', () => {
|
describe('Hello world!', () => {
|
||||||
afterAll(() => { delete process.env.CDS_TYPESCRIPT; });
|
afterAll(() => { delete process.env.CDS_TYPESCRIPT; });
|
||||||
|
|
||||||
it('should say hello with class impl from a typescript file', async () => {
|
it('should say hello with class impl from a typescript file', async () => {
|
||||||
const {data} = await GET`/say/hello(to='world')`
|
const {data} = await GET`/say/hello(to='world')`
|
||||||
expect(data.value).toEqual('Hello world from a typescript file!')
|
expect(data.value).toMatch(/Hello world.*typescript.*/i)
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user