Skip to content

Commit

Permalink
Add tests to ensure thumbnails are undefined when file update fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao-vi committed Jan 16, 2025
1 parent f03a010 commit 8dc35e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/files/specs/processDocument.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ describe('processDocument', () => {

await expect(promise).rejects.toEqual(new UpdateFileError());
const [file] = await files.get({ _id });
const [thumbnail] = await files.get({ entity: _id, type: 'thumbnail' });

expect(file).toBeUndefined();
expect(thumbnail).toBeUndefined();
});
});

0 comments on commit 8dc35e4

Please sign in to comment.