release: WRNexusJS 0.5.0
This commit is contained in:
@@ -8,3 +8,11 @@ test("HMR client syncs fresh HTML over the websocket", () => {
|
||||
expect(HMR_CLIENT_JS).not.toContain("fetch(location.href");
|
||||
expect(HMR_CLIENT_JS).not.toContain("location.reload()");
|
||||
});
|
||||
|
||||
test("HMR replaces hydrated components when their server signature changes", () => {
|
||||
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-wrn-hydration")');
|
||||
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-wrn-behavior")');
|
||||
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-scope")');
|
||||
expect(HMR_CLIENT_JS).toContain("window.__wrnexusDisposeBehaviors(from)");
|
||||
expect(HMR_CLIENT_JS).toContain("from.replaceWith(to.cloneNode(true))");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user