remove test - invalid identifiers will no longer work

pull/1864/head
Rich Harris 7 years ago
parent 0adadd928f
commit 6c854a6d57

@ -1,11 +0,0 @@
<script>
export let undefined = 0;
function state() {
// [svelte-upgrade warning]
// this function needs to be manually rewritten
return arg;
}
</script>
<button on:click='{() => undefined += 1}'>+1</button>

@ -1,29 +0,0 @@
export default {
'skip-ssr': true, // TODO delete this line, once binding works
html: `
<button>+1</button>
<p>count: 0</p>
`,
test ( assert, component, target, window ) {
const click = new window.MouseEvent( 'click' );
const button = target.querySelector( 'button' );
button.dispatchEvent( click );
assert.equal( component.x, 1 );
assert.htmlEqual( target.innerHTML, `
<button>+1</button>
<p>count: 1</p>
` );
button.dispatchEvent( click );
assert.equal( component.x, 2 );
assert.htmlEqual( target.innerHTML, `
<button>+1</button>
<p>count: 2</p>
` );
}
};

@ -1,8 +0,0 @@
<script>
import Counter from './Counter.html';
export let x;
</script>
<Counter bind:x-count='x'/>
<p>count: {x}</p>
Loading…
Cancel
Save