Spring Cleaning → removing obsolete stuff, and moved non-app things to ./etc (#810)
* Remove obsolete stuff, and moved non-app things to ./etc * remove test * Update package-lock --------- Co-authored-by: Christian Georgi <christian.georgi@sap.com>
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
const cds = require('@sap/cds')
|
||||
|
||||
describe('cap/samples - Hello world!', () => {
|
||||
|
||||
const { GET, expect } = cds.test (__dirname+'/../hello')
|
||||
|
||||
it('should say hello with class impl', async () => {
|
||||
const {data} = await GET `/odata/v4/say/hello(to='world')`
|
||||
expect(data.value).to.eql('Hello world!')
|
||||
})
|
||||
|
||||
it('should say hello with another impl', async () => {
|
||||
await cds.serve('say').from(cds.model)
|
||||
.at('/say-again').in(cds.app)
|
||||
.with(srv => {
|
||||
srv.on('hello', (req) => `Hello again ${req.data.to}!`)
|
||||
})
|
||||
const {data} = await GET `/say-again/hello(to='world')`
|
||||
expect(data.value).to.eql('Hello again world!')
|
||||
})
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user