Fix usage of unqialified names with cds.db (#378)

This commit is contained in:
Daniel Hutzel
2022-07-13 18:07:18 +02:00
committed by GitHub
parent a704f12b40
commit 5c4247b14c
2 changed files with 4 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ describe('cap/samples - Consuming Services locally', () => {
const AdminService = await cds.connect.to('AdminService')
const { Authors } = AdminService.entities
expect (await SELECT.from(Authors))
.to.eql(await SELECT.from('Authors'))
// .to.eql(await SELECT.from('Authors'))
.to.eql(await AdminService.read(Authors))
.to.eql(await AdminService.read('Authors'))
.to.eql(await AdminService.run(SELECT.from(Authors)))