-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: reorganize compliance tests to always use same models (#331)
- Loading branch information
1 parent
a788a77
commit 95b6ee9
Showing
2 changed files
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,13 @@ | ||
'use strict' | ||
|
||
const cds = require('../cds.js') | ||
|
||
describe('DELETE', () => { | ||
cds.test(__dirname + '/../bookshop') | ||
|
||
describe('from', () => { | ||
test.skip('missing', () => { | ||
throw new Error('not supported') | ||
}) | ||
}) | ||
|
||
describe('where', () => { | ||
test.skip('path expressions', async () => { | ||
const deleteEmilysBooks = DELETE.from('AdminService.RenameKeys').where(`author.name = 'Emily Brontë'`) | ||
const selectEmilysBooks = CQL`SELECT * FROM sap.capire.bookshop.Books where author.name = 'Emily Brontë'` | ||
|
||
const beforeDelete = await cds.run(selectEmilysBooks) | ||
await cds.run(deleteEmilysBooks) | ||
const afterDelete = await cds.run(selectEmilysBooks) | ||
|
||
expect(beforeDelete).toHaveLength(1) | ||
expect(afterDelete).toHaveLength(0) | ||
test.skip('missing', () => { | ||
throw new Error('not supported') | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters