Skip to content

Commit

Permalink
ensure order before matching
Browse files Browse the repository at this point in the history
  • Loading branch information
finlay-jisc committed Nov 26, 2024
1 parent 1603f93 commit 6ac2fe7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,9 @@ describe('Create live publication', () => {
});

expect(createPublicationRequest.status).toEqual(201);
expect(createPublicationRequest.body.linkedTo).toMatchObject([
expect(
createPublicationRequest.body.linkedTo.sort((a, b) => a.publicationToId - b.publicationToId)
).toMatchObject([
{ publicationToId: 'publication-problem-live', versionToId: 'publication-problem-live-v2', draft: false },
{
publicationToId: 'publication-problem-live-2',
Expand Down

0 comments on commit 6ac2fe7

Please sign in to comment.