using cds.test

This commit is contained in:
Daniel
2021-08-30 16:04:54 +02:00
committed by Daniel Hutzel
parent 2be3d50389
commit 2f5d159428
9 changed files with 16 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
const { GET, expect } = require('../test') .run ('serve', 'test/localized-data.cds', '--in-memory')
const cds = require('@sap/cds/lib')
const { GET, expect } = cds.test.run ('serve', __dirname+'/localized-data.cds', '--in-memory')
if (cds.User.default) cds.User.default = cds.User.Privileged // hard core monkey patch
else cds.User = cds.User.Privileged // hard core monkey patch for older cds releases