Skip to content

Commit

Permalink
adjust content-type check (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjvans committed May 29, 2024
1 parent 85f2497 commit 187014d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/odata.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ describe('cap/samples - Bookshop APIs', () => {
const { headers, status, data } = await GET `/browse/$metadata`
expect(status).to.equal(200)
expect(headers).to.contain({
'content-type': 'application/xml',
// 'content-type': 'application/xml', //> fails with 'application/xml;charset=utf-8', which is set by express
'odata-version': '4.0',
})
expect(headers['content-type']).to.match(/application\/xml/)
expect(data).to.contain('<EntitySet Name="Books" EntityType="CatalogService.Books">')
expect(data).to.contain('<Annotation Term="Common.Label" String="Currency"/>')
})
Expand Down

0 comments on commit 187014d

Please sign in to comment.