Skip to content

Commit 928f371

Browse files
vobupatricebender
andauthored
test: fix useless (#1271)
Co-authored-by: Patrice Bender <[email protected]>
1 parent 26a4403 commit 928f371

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

postgres/test/service.test.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,10 @@ describe('OData to Postgres dialect', () => {
7373
})
7474

7575
test('odata: single entity -> sql: select record containing all entity field keys', async () => {
76-
// const response = await GET('/beershop/Beers(9e1704e3-6fd0-4a5d-bfb1-13ac47f7976b)')
77-
await GET('/beershop/Beers(9e1704e3-6fd0-4a5d-bfb1-13ac47f7976b)')
78-
;['ID', 'createdAt', 'createdBy', 'modifiedAt', 'modifiedBy', 'name', 'abv', 'ibu', 'brewery'].forEach(
76+
const response = await GET('/beershop/Beers(9e1704e3-6fd0-4a5d-bfb1-13ac47f7976b)')
77+
;['ID', 'createdAt', 'createdBy', 'modifiedAt', 'modifiedBy', 'name', 'abv', 'ibu', 'brewery_ID'].forEach(
7978
property => {
80-
expect(property).to.exist
81-
// REVISIT: this ^^^ looks like a pretty useless test
82-
//> did you mean this?:
83-
// expect(response).to.have(property)
79+
expect(response.data).to.have(property)
8480
},
8581
)
8682
})

0 commit comments

Comments
 (0)