This commit is contained in:
Tom Moor
2020-12-28 20:43:27 -08:00
parent caee7afde2
commit 41be18e938
4 changed files with 39 additions and 1 deletions

View File

@@ -1551,6 +1551,14 @@ describe("#documents.import", () => {
});
expect(res.status).toEqual(400);
});
it("should require authentication", async () => {
const { document } = await seed();
const res = await server.post("/api/documents.import", {
body: { id: document.id },
});
expect(res.status).toEqual(401);
});
});
describe("#documents.create", () => {