Fix usage of unqialified names with cds.db (#378)
This commit is contained in:
@@ -4,11 +4,13 @@ const _model = '@capire/reviews'
|
||||
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
|
||||
|
||||
const Reviews = 'sap.capire.reviews.Reviews'
|
||||
|
||||
describe('cap/samples - Messaging', ()=>{
|
||||
|
||||
it ('should bootstrap sqlite in-memory db', async()=>{
|
||||
const db = await cds.deploy (_model) .to ('sqlite::memory:')
|
||||
await db.delete('Reviews')
|
||||
await db.delete(Reviews)
|
||||
expect (db.model) .not.undefined
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user