Secure cwd
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
const cwd = process.cwd(); process.chdir (__dirname) //> only for internal CI/CD@SAP
|
||||
const {expect} = require('./capire')
|
||||
const cds = require ('@sap/cds')
|
||||
const _model = '@capire/reviews'
|
||||
@@ -5,6 +6,8 @@ const _model = '@capire/reviews'
|
||||
|
||||
describe('Messaging', ()=>{
|
||||
|
||||
after(()=> process.chdir(cwd))
|
||||
|
||||
it ('should bootstrap sqlite in-memory db', async()=>{
|
||||
const db = await cds.deploy (_model) .to ('sqlite::memory:')
|
||||
expect (db.model) .not.undefined
|
||||
|
||||
Reference in New Issue
Block a user