cds.test.in(...) must come first (#623)
* cds.test.in(...) must come first * revert unrelated change
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
const cds = require('@sap/cds/lib')
|
const cds = require('@sap/cds/lib')
|
||||||
|
const { expect } = cds.test.in(__dirname,'..')
|
||||||
|
|
||||||
describe('cap/samples - Hierarchical Data', ()=>{
|
describe('cap/samples - Hierarchical Data', ()=>{
|
||||||
|
|
||||||
@@ -12,7 +13,6 @@ describe('cap/samples - Hierarchical Data', ()=>{
|
|||||||
`
|
`
|
||||||
const model = cds.compile.for.nodejs(csn)
|
const model = cds.compile.for.nodejs(csn)
|
||||||
const {Categories:Cats} = model.definitions
|
const {Categories:Cats} = model.definitions
|
||||||
const { expect } = cds.test.in(__dirname,'..')
|
|
||||||
|
|
||||||
before ('bootstrap sqlite in-memory db...', async()=>{
|
before ('bootstrap sqlite in-memory db...', async()=>{
|
||||||
await cds.deploy (csn) .to ('sqlite::memory:') // REVISIT: cds.compile.to.sql should accept cds.compiled.for.nodejs models
|
await cds.deploy (csn) .to ('sqlite::memory:') // REVISIT: cds.compile.to.sql should accept cds.compiled.for.nodejs models
|
||||||
|
|||||||
Reference in New Issue
Block a user