Fix locale handling

This commit is contained in:
Dr. David A. Kunz
2022-09-12 10:50:47 +02:00
committed by GitHub
parent 3dccfc30f0
commit a560e12106

View File

@@ -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' }
])
})
})
})