mirror of https://github.com/sveltejs/svelte
Merge 4b45b9c63c
into 6e7cd5da54
commit
acd8aa7869
@ -0,0 +1 @@
|
||||
<p>nested</p>
|
@ -0,0 +1 @@
|
||||
<p>nested</p>
|
@ -0,0 +1 @@
|
||||
<p>nested</p>
|
@ -0,0 +1,17 @@
|
||||
export default {
|
||||
snapshot(target) {
|
||||
const p = target.querySelector('p');
|
||||
|
||||
return {
|
||||
p,
|
||||
text: p.childNodes[0]
|
||||
};
|
||||
},
|
||||
|
||||
test(assert, target, snapshot) {
|
||||
const p = target.querySelector('p');
|
||||
|
||||
assert.equal(p, snapshot.p);
|
||||
assert.equal(p.childNodes[0], snapshot.text);
|
||||
}
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<RenamedNested/>
|
||||
|
||||
<script>
|
||||
import RenamedNested from './Nested.html';
|
||||
</script>
|
@ -0,0 +1 @@
|
||||
<p>nested</p>
|
@ -0,0 +1 @@
|
||||
<p>nested</p>
|
@ -0,0 +1 @@
|
||||
<p>nested</p>
|
@ -0,0 +1,17 @@
|
||||
export default {
|
||||
snapshot(target) {
|
||||
const p = target.querySelector('p');
|
||||
|
||||
return {
|
||||
p,
|
||||
text: p.childNodes[0]
|
||||
};
|
||||
},
|
||||
|
||||
test(assert, target, snapshot) {
|
||||
const p = target.querySelector('p');
|
||||
|
||||
assert.equal(p, snapshot.p);
|
||||
assert.equal(p.childNodes[0], snapshot.text);
|
||||
}
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<Nested/>
|
||||
|
||||
<script>
|
||||
import './Nested.html';
|
||||
</script>
|
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 123 B |
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 123 B |
Loading…
Reference in new issue