Skip to content

Commit

Permalink
[#951] Adjust the tests to match new expected behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisgo committed Feb 9, 2024
1 parent 2e472c9 commit efe65a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: run unit test
run: yarn test --passWithNoTests
- name: run integration test
run: yarn test:integration --passWithNoTests
run: yarn test:integration
build-test:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('api', () => {
.post('/')
.send(xml.toString())
.expect(200)
.then((response) => expect(response.body).toMatchObject({ version: '1.0.3' }));
.then((response) => expect(response.headers['content-type']).toBe('application/vnd.elife.encoda.v1.0.3+json; charset=utf-8'));
});

it('should use the specified version', async () => {
Expand All @@ -20,7 +20,7 @@ describe('api', () => {
.set('Accept', 'application/vnd.elife.encoda.v1.0.1+json')
.send(xml.toString())
.expect(200)
.then((response) => expect(response.body).toMatchObject({ version: '1.0.1' }));
.then((response) => expect(response.headers['content-type']).toBe('application/vnd.elife.encoda.v1.0.1+json; charset=utf-8'));
});
});
});
Expand Down

0 comments on commit efe65a7

Please sign in to comment.