preview-demo test: fake document carries what the in-flow banner uses
Some checks failed
Build pull request / Build pull request (pull_request) Has been cancelled
Some checks failed
Build pull request / Build pull request (pull_request) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
16cc05a33b
commit
a1aece7d36
1 changed files with 2 additions and 1 deletions
|
|
@ -237,7 +237,8 @@ describe('the guard', () => {
|
|||
} as unknown as Window & typeof globalThis;
|
||||
vi.stubGlobal('document', {
|
||||
createElement: () => ({ style: {}, setAttribute: vi.fn() }),
|
||||
body: { appendChild: vi.fn() },
|
||||
getElementById: () => null,
|
||||
body: { style: {}, insertBefore: vi.fn() },
|
||||
addEventListener: vi.fn(),
|
||||
});
|
||||
const server = installDemo(win);
|
||||
|
|
|
|||
Loading…
Reference in a new issue