Skip to content

Commit 6a09943

Browse files
committed
add test
1 parent 6b01659 commit 6a09943

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { test } from '../../test';
2+
3+
export default test({
4+
html: `<p>hello</p>`,
5+
6+
before_test: () => {
7+
// @ts-expect-error
8+
globalThis.frag = 'hello';
9+
},
10+
11+
after_test: () => {
12+
// @ts-expect-error
13+
delete globalThis.frag;
14+
}
15+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>{frag}</p>

0 commit comments

Comments
 (0)