mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
test(share-links): drop the unused owner binding in the ownership guard
The foreign-document ownership test only needs owner A's upload to exist; it seeded the user into a discarded local. Call it for its effect instead so lint stays clean.
This commit is contained in:
1 parent
829345a57b
commit
788996b934
1 file changed
+1
-1
@@ -192,7 +192,7 @@ describe("share-link documents — end-to-end", () => {
|
||||
|
||||
it("refuses a share create referencing a document the caller does not own", async () => {
|
||||
// Owner A uploads a document.
|
||||
const _a = await seedVaultUser("share-a");
|
||||
await seedVaultUser("share-a");
|
||||
const { upload, createShare } = await routes();
|
||||
const up = await upload(uploadRequest(PDF_SMALL, "a.pdf"));
|
||||
const aDocId = (await up.json()).data.id as string;
|
||||
|
||||
Reference in new issue
Block a user