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,11 +1,11 @@
const { expect } = require('../test') .run (
const cds = require('@sap/cds/lib')
const { expect } = cds.test (
'serve', 'AdminService', '--from', '@capire/bookshop,@capire/common', '--in-memory'
)
const cds = require('@sap/cds/lib')
describe('Consuming Services locally', () => {
//
it('bootrapped the database successfully', ()=>{
it('bootstrapped the database successfully', ()=>{
const { AdminService } = cds.services
const { Authors } = AdminService.entities
expect(AdminService).not.to.be.undefined