Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sjvans authored Jun 18, 2024
1 parent e57320c commit 403cacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/odata.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe ("Basic Querying", () => {
describe('Basic OData', () => {

it('serves $metadata documents in v4', async () => {
const { headers, status, data } = await GET(`/processor/$metadata`, { headers: { accept: '*/*' } }) //> for cds^7
const { headers, status, data } = await GET(`/processor/$metadata`, { headers: { accept: 'application/xml' } })
expect(status).to.equal(200)
expect(headers).to.contain({
// 'content-type': 'application/xml', //> fails with 'application/xml;charset=utf-8', which is set by express
Expand Down Expand Up @@ -101,7 +101,7 @@ describe('Basic OData', () => {
})

it('supports $value requests', async () => {
const { data } = await GET(`/processor/Travel(TravelUUID='52657221A8E4645C17002DF03754AB66',IsActiveEntity=true)/to_Customer/LastName/$value`, { headers: { accept: '*/*' } }) //> for cds^7
const { data } = await GET(`/processor/Travel(TravelUUID='52657221A8E4645C17002DF03754AB66',IsActiveEntity=true)/to_Customer/LastName/$value`, { headers: { accept: 'text/plain' } })
expect(data).to.equal('Prinz')
})

Expand Down

0 comments on commit 403cacd

Please sign in to comment.