fix test failure caused by clearing cache

pull/215/head
Rich-Harris 8 years ago
parent ccba20bac9
commit 46abb9c712

@ -1 +1,9 @@
<p>i am a widget</p> <p>i am a widget</p>
<script>
export default {
onrender () {
this.isWidget = true;
}
};
</script>

@ -1,9 +1,7 @@
import Widget from './Widget.html';
export default { export default {
html: '<div><p>i am a widget</p></div>', html: '<div><p>i am a widget</p></div>',
test ( assert, component ) { test ( assert, component ) {
const widget = component.refs.widget; const widget = component.refs.widget;
assert.ok( widget instanceof Widget ); assert.ok( widget.isWidget );
} }
}; };

Loading…
Cancel
Save