Pre Release New Changes
This commit is contained in:
@@ -26,3 +26,11 @@ test("HMR preserves the active browser theme and accent", () => {
|
||||
|
||||
expect(HMR_CLIENT_JS).toContain('new CustomEvent("wrnexus:hmr-updated"');
|
||||
});
|
||||
|
||||
test("HMR synchronizes local WRN styles with the current document nonce", () => {
|
||||
expect(HMR_CLIENT_JS).toContain("style[data-wrnexus-style-id]");
|
||||
expect(HMR_CLIENT_JS).toContain("function currentDocumentNonce()");
|
||||
expect(HMR_CLIENT_JS).toContain('currentStyle.setAttribute("nonce", nonce)');
|
||||
expect(HMR_CLIENT_JS).toContain("document.head.appendChild(currentStyle)");
|
||||
expect(HMR_CLIENT_JS).toContain("syncWrnStyles(doc)");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user