mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
fix(test): one more broken test
This commit is contained in:
parent
2b966afbe1
commit
c27f13d49f
@ -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);
|
||||
});
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user