release: WRNexusJS 0.5.10
This commit is contained in:
@@ -65,3 +65,11 @@ test("collectScripts automatically adds a referenced package runtime once", () =
|
||||
),
|
||||
).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("collectScripts omits client navigation in document mode", () => {
|
||||
const scripts = collectScripts("<main>Server rendered</main>", [], {
|
||||
mode: "document",
|
||||
});
|
||||
|
||||
expect(scripts).not.toContain("/__wrnexus/nav.js");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user