Skip to content

Commit

Permalink
update test for navigation properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarbounakis committed Dec 2, 2019
1 parent 46be2a8 commit 40542b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/@themost/express/src/service.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,16 @@ describe('serviceRouter', () => {
expect(response.body.value).toBeInstanceOf(Array);
expect(response.body.value.length).toBe(1);
const person = response.body.value[0];
await request(app)
response = await request(app)
.get(`/api/people/${person.id}/orders`)
.set('Content-Type', 'application/json')
.set('Accept', 'application/json');
expect(response.status).toBe(200);
expect(response.body).toBeTruthy();
expect(response.body.value).toBeInstanceOf(Array);
response.body.value.forEach( x => {
expect(x).toBeTruthy()
expect(x.additionalType).toBe('Order');
expect(x).toBeTruthy();
});
});

Expand Down
Binary file modified modules/@themost/express/src/test/db/local.db
Binary file not shown.

0 comments on commit 40542b2

Please sign in to comment.