Fix locale handling
This commit is contained in:
committed by
GitHub
parent
3dccfc30f0
commit
a560e12106
@@ -26,7 +26,8 @@ describe('Bookshop: OData Protocol Level Testing', () => {
|
||||
|
||||
it('Get with select, expand and localized', async () => {
|
||||
const response = await request
|
||||
.get('/browse/Books?$select=title,author&$expand=currency&sap-language=de')
|
||||
.get('/browse/Books?$select=title,author&$expand=currency')
|
||||
.set('Accept-Language', 'de')
|
||||
.expect('Content-Type', /^application\/json/)
|
||||
.expect(200)
|
||||
|
||||
@@ -75,4 +76,4 @@ describe('Bookshop: CDS Service Level Testing', () => {
|
||||
{ title: 'Catweazle' }
|
||||
])
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user