make tests more robust

This commit is contained in:
Daniel
2020-11-22 10:49:56 +01:00
committed by Daniel Hutzel
parent e15a6192b6
commit b6028721af
9 changed files with 17 additions and 17 deletions

View File

@@ -1,8 +1,9 @@
const { GET, expect } = require('../test') .run ('bookshop')
const cds = require('@sap/cds/lib'); cds.User = cds.User.Privileged // skip auth
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`
expect(status).to.equal(200)