Fix tests to run with mocha (#389)

This commit is contained in:
Daniel Hutzel
2022-08-15 14:11:52 +02:00
committed by GitHub
parent 2a37ef8be1
commit 8ab66b4130
10 changed files with 53 additions and 51 deletions

View File

@@ -1,8 +1,9 @@
const cds = require('@sap/cds/lib')
const { expect } = cds.test ('@capire/bookshop')
describe('cap/samples - Consuming Services locally', () => {
//
const { expect } = cds.test ('@capire/bookshop')
it('bootstrapped the database successfully', ()=>{
const { AdminService } = cds.services
const { Authors } = AdminService.entities