mirror of https://github.com/sveltejs/svelte
add development warnings for missing data properties with dev: true (#13)
parent
62c8ef42ff
commit
d61b1927b2
@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
dev: true,
|
||||||
|
|
||||||
|
error ( assert, err ) {
|
||||||
|
assert.equal( err.message, `Component was created without expected data property 'foo'` );
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1 @@
|
|||||||
|
<p>{{foo}}</p>
|
Loading…
Reference in new issue