Use test API from cds lib instead of custom one

This commit is contained in:
Christian Georgi
2020-10-27 18:03:13 +01:00
committed by Daniel Hutzel
parent 392106d44a
commit 5d64ca3555
9 changed files with 14 additions and 172 deletions

View File

@@ -1,9 +1,10 @@
const { GET, expect } = require('./cds').test('bookshop').in(__dirname,'..')
const cds = require('@sap/cds/lib')
const { GET, expect } = cds.test('bookshop').in(__dirname,'..')
describe('OData Protocol', () => {
it('serves $metadata documents in v4', async () => {
const { headers, status, data } = await GET`/browse/$metadata`
const { headers, status, data } = await GET `/browse/$metadata`
expect(status).to.equal(200)
expect(headers).to.contain({
'content-type': 'application/xml',