mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-27 02:44:50 +01:00
test: expect concealed attachment issue reads
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
15c7eff282
commit
e4e5d3cfef
1 file changed
+2
-1
@@ -624,7 +624,8 @@ describe("issue attachment routes", () => {
|
||||
const app = await createApp(storage);
|
||||
const res = await request(app).get("/api/attachments/attachment-1/content");
|
||||
|
||||
expect(res.status).toBe(403);
|
||||
expect(res.status).toBe(404);
|
||||
expect(res.body.error).toBe("Issue not found");
|
||||
expect(storage.getObject).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user