Skip to content

Commit

Permalink
updated tests after adding seed data publication
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin H committed Nov 13, 2023
1 parent 84d53e8 commit be467a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/components/user/__tests__/getUserPublications.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ describe('Get a given users publication versions', () => {
.query({ apiKey: 123456789, offset: 0, limit: 100 });

expect(versions.status).toEqual(200);
expect(versions.body.results.length).toEqual(20);
expect(versions.body.results.length).toEqual(21);
});

test('Unauthenticated user can only view live versions', async () => {
const versions = await testUtils.agent.get('/users/test-user-1/publication-versions');

expect(versions.status).toEqual(200);
expect(versions.body.results.length).toEqual(8);
expect(versions.body.results.length).toEqual(9);
});

test('An authenticated user can only view live versions of another user', async () => {
Expand All @@ -28,7 +28,7 @@ describe('Get a given users publication versions', () => {
.query({ apiKey: 987654321 });

expect(versions.status).toEqual(200);
expect(versions.body.results.length).toEqual(8);
expect(versions.body.results.length).toEqual(9);
});

test('Error message returned for a user that does not exist', async () => {
Expand Down

0 comments on commit be467a9

Please sign in to comment.