Skip to content

Commit

Permalink
Fix styling again
Browse files Browse the repository at this point in the history
  • Loading branch information
wilwong89 committed Nov 24, 2023
1 parent d7fc41b commit 479b849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/tests/unit/services/version.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ describe('removeDuplicateLatest', () => {

expect(Version.andWhere).toHaveBeenCalledTimes(2);
expect(Version.andWhere).toHaveBeenCalledWith('objectId', OBJECT_ID);
expect(Version.andWhere).toHaveBeenCalledWith({ 'isLatest': true });
expect(Version.andWhere).toHaveBeenCalledWith({ 'isLatest': true });
});

it('does not set other versions to false', async () => {
Expand All @@ -335,7 +335,7 @@ describe('removeDuplicateLatest', () => {
path: '/test',
bucketId: '0000-0000'
});
Version.where.mockResolvedValueOnce([{ isLatest: false },{ isLatest: false }]);
Version.where.mockResolvedValueOnce([{ isLatest: false }, { isLatest: false }]);

await service.removeDuplicateLatest(validUuidv4, OBJECT_ID);

Expand Down

0 comments on commit 479b849

Please sign in to comment.