mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 00:02:28 +08:00
test(server): broken test due to changes in path
This commit is contained in:
parent
74a15ee6a4
commit
5d47d2652d
@ -14,15 +14,12 @@ describe("Login Route test", () => {
|
|||||||
|
|
||||||
it("should return the login page, when using a GET request", async () => {
|
it("should return the login page, when using a GET request", async () => {
|
||||||
|
|
||||||
// RegExp for login page specific string in HTML: e.g. "assets/v0.92.7/app/login.css"
|
// RegExp for login page specific string in HTML
|
||||||
const loginCssRegexp = /assets\/v[0-9.a-z]+\/app\/login\.css/;
|
|
||||||
|
|
||||||
const res = await supertest(app)
|
const res = await supertest(app)
|
||||||
.get("/login")
|
.get("/login")
|
||||||
.expect(200)
|
.expect(200)
|
||||||
|
|
||||||
|
expect(res.text).toMatch(/assets\/v[0-9.a-z]+\/src\/login\.js/);
|
||||||
expect(loginCssRegexp.test(res.text)).toBe(true);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user