Rename test tags to make it easier to follow

pull/2516/head
Zephraph 7 years ago
parent a197bc68c0
commit a5d6210912

@ -1,3 +1,3 @@
<svelte:options tag="imported-element"/> <svelte:options tag="as-imported"/>
<h2><slot/></h2> <h2><slot/></h2>

@ -2,8 +2,8 @@
<script> <script>
import './AsElement.svelte'; import './AsElement.svelte';
import ImportedElement from './AsImported.svelte'; import AsImported from './AsImported.svelte';
</script> </script>
<as-element>Hello</as-element> <as-element>Hello</as-element>
<ImportedElement>world</ImportedElement> <AsImported>world</AsImported>

@ -6,7 +6,7 @@ export default function (target) {
target target
}); });
assert.equal(target.innerHTML, '<custom-element><as-element><h1>Hello</h1></as-element><imported-element><h2>world</h2></imported-element></custom-element>'); assert.equal(target.innerHTML, '<custom-element><as-element><h1>Hello</h1></as-element><as-imported><h2>world</h2></as-imported></custom-element>');
const el = target.querySelector('custom-element'); const el = target.querySelector('custom-element');
assert.equal(el.innerText, "Hello world!"); assert.equal(el.innerText, "Hello world!");

Loading…
Cancel
Save