Skip to content

Commit 4e5e1ec

Browse files
committed
add test
1 parent 39ffa63 commit 4e5e1ec

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { test, ok } from '../../test';
2+
3+
export default test({
4+
html: `<svg><title>potato</title></svg>`,
5+
test({ assert, target }) {
6+
const title = target.querySelector('title');
7+
ok(title);
8+
9+
assert.equal(title.namespaceURI, 'http://www.w3.org/2000/svg');
10+
}
11+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<svg>
2+
{#if true}
3+
<title>potato</title>
4+
{/if}
5+
</svg>

0 commit comments

Comments
 (0)