mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 17:52:32 +08:00
10 lines
349 B
TypeScript
10 lines
349 B
TypeScript
![]() |
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" });
|
||
|
});
|
||
|
});
|