fix(test): one more broken test

This commit is contained in:
Elian Doran 2025-03-15 18:18:17 +02:00
parent 2b966afbe1
commit c27f13d49f
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,7 @@ describe("Share API test", () => {
it("requests password for password-protected share", async () => {
await supertest(app)
.get("/share/YjlPRj2E9fOV")
.expect(200)
.expect(401)
.expect("WWW-Authenticate", 'Basic realm="User Visible Realm", charset="UTF-8"');
expect(cannotSetHeadersCount).toBe(0);
});

View File

@ -216,7 +216,6 @@ function register(router: Router) {
const { shareId } = req.params;
console.log("Got share ", shareId, shaca.notes, shaca.aliasToNote);
const note = shaca.aliasToNote[shareId] || shaca.notes[shareId];
renderNote(note, req, res);