rename author to authorName

This commit is contained in:
Gregor Wolf
2021-11-12 21:49:39 +01:00
parent 19c886d6dc
commit 152d088ff4
2 changed files with 23 additions and 23 deletions

View File

@@ -19,13 +19,13 @@ describe('OData Protocol', () => {
it('supports $search in multiple fields', async () => {
const { data } = await GET `/browse/Books ${{
params: { $search: 'Po', $select: `title,author` },
params: { $search: 'Po', $select: `title,authorName` },
}}`
expect(data.value).to.eql([
{ ID: 201, title: 'Wuthering Heights', author: 'Emily Brontë' },
{ ID: 207, title: 'Jane Eyre', author: 'Charlotte Brontë' },
{ ID: 251, title: 'The Raven', author: 'Edgar Allen Poe' },
{ ID: 252, title: 'Eleonora', author: 'Edgar Allen Poe' },
{ ID: 201, title: 'Wuthering Heights', authorName: 'Emily Brontë' },
{ ID: 207, title: 'Jane Eyre', authorName: 'Charlotte Brontë' },
{ ID: 251, title: 'The Raven', authorName: 'Edgar Allen Poe' },
{ ID: 252, title: 'Eleonora', authorName: 'Edgar Allen Poe' },
])
})