fix(runtime): remove false browser diagnostics
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user