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,13 +1,10 @@
const { expect } = require('../test')
const cds = require('@sap/cds/lib')
const cwd = process.cwd(); process.chdir (__dirname) //> only for internal CI/CD@SAP
const {expect} = cds.test
const _model = '@capire/reviews'
cds.User = cds.User.Privileged // hard core monkey patch
describe('Messaging', ()=>{
after(()=> process.chdir(cwd))
it ('should bootstrap sqlite in-memory db', async()=>{
const db = await cds.deploy (_model) .to ('sqlite::memory:')
await db.delete('Reviews')