failing test for #1522

pull/1530/head
Rich Harris 7 years ago
parent 7c0986fded
commit e087d08880

@ -0,0 +1,14 @@
import order from './order.js';
export default {
'skip-ssr': true,
test(assert, component, target) {
assert.deepEqual(order, [
'onstate',
'render',
'oncreate',
'onupdate'
]);
}
};

@ -0,0 +1,26 @@
{identity(42)}
<script>
import order from './order.js';
export default {
helpers: {
identity(x) {
order.push('render');
return x;
}
},
onstate() {
order.push('onstate');
},
onupdate() {
order.push('onupdate');
},
oncreate() {
order.push('oncreate');
}
};
</script>
Loading…
Cancel
Save