Adjusting odata paths for cds7 (#543)

* Adjusting odata paths for cds7

* Still using old sqlite3

* npm ci

* Remove Node 14 tests
This commit is contained in:
Daniel Hutzel
2023-07-05 11:07:20 +02:00
committed by GitHub
parent c089c9777b
commit 96473d45c8
8 changed files with 923 additions and 252 deletions

View File

@@ -8,7 +8,7 @@ describe('cap/samples - Fiori APIs - v2', function() {
// if (this.timeout) this.timeout(1e6)
it('serves $metadata documents in v2', async () => {
const { headers, data } = await GET `/v2/browse/$metadata`
const { headers, data } = await GET `/odata/v2/browse/$metadata`
expect(headers).to.contain({
'content-type': 'application/xml',
'dataserviceversion': '2.0',
@@ -17,7 +17,7 @@ describe('cap/samples - Fiori APIs - v2', function() {
})
it('serves Books in v2', async () => {
const { data } = await GET `/v2/browse/Books`
const { data } = await GET `/odata/v2/browse/Books`
expect(data).to.containSubset({d:{results:[]}})
expect(data.d.results.length).to.be.greaterThanOrEqual(5)
})