mirror of https://github.com/TriliumNext/Notes
fix(link): search from URL not working (closes #1335)
parent
1ba6104e36
commit
79cc1cbf17
@ -0,0 +1,9 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { parseNavigationStateFromUrl } from "./link.js";
|
||||
|
||||
describe("Link", () => {
|
||||
it("parses plain searchString", () => {
|
||||
const output = parseNavigationStateFromUrl("http://localhost:8080/#?searchString=hello");
|
||||
expect(output).toMatchObject({ searchString: "hello" });
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue