Skip to content

Commit fbd234a

Browse files
committed
add test for <a> specifically
1 parent bc2c1d9 commit fbd234a

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { test } from '../../test';
2+
3+
export default test({
4+
server_props: {
5+
browser: false
6+
},
7+
8+
props: {
9+
browser: true
10+
}
11+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!--[--><a href="/foo">foo</a><!--]-->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script>
2+
let { browser } = $props();
3+
</script>
4+
5+
<a href={browser ? '/foo' : '/bar'}>foo</a>

0 commit comments

Comments
 (0)