fix(runtime): remove false browser diagnostics
Quality / quality (ubuntu-latest) (push) Failing after 9m52s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-11 16:46:44 +05:30
parent 904127687b
commit 743275e6fa
8 changed files with 19 additions and 21 deletions
+2 -3
View File
@@ -704,7 +704,7 @@ test("a camelCase output reaches a parent binding despite attribute lowercasing"
expect(win.document.querySelector("#out")?.textContent).toBe("yes");
});
test("development runtime warns once for an output with no parent binding", () => {
test("development runtime allows an output with no parent binding", () => {
const win = new Window() as unknown as Window & Record<string, unknown>;
win.document.body.innerHTML = `<div data-scope="" data-wrn-events="complete"><button data-on-click="output.complete({})">go</button></div>`;
(globalThis as Record<string, unknown>).window = win;
@@ -732,8 +732,7 @@ test("development runtime warns once for an output with no parent binding", () =
} finally {
console.warn = originalWarn;
}
expect(warnings).toHaveLength(1);
expect(String(warnings[0]?.[0])).toContain("WRN-DEV-OUTPUT-UNHANDLED");
expect(warnings).toHaveLength(0);
});
test("development runtime warns when a component binding names a missing function", () => {