mirror of https://github.com/sveltejs/svelte
parent
60e73c41dc
commit
5fdf109ed3
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
dev: true
|
||||||
|
};
|
@ -0,0 +1,7 @@
|
|||||||
|
<svelte:options tag="my-app"/>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export let foo = undefined;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>foo: {foo}</p>
|
@ -0,0 +1,17 @@
|
|||||||
|
import * as assert from 'assert';
|
||||||
|
import './main.svelte';
|
||||||
|
|
||||||
|
export default function (target) {
|
||||||
|
const warnings = [];
|
||||||
|
const warn = console.warn;
|
||||||
|
|
||||||
|
console.warn = warning => {
|
||||||
|
warnings.push(warning);
|
||||||
|
};
|
||||||
|
|
||||||
|
target.innerHTML = '<my-app />';
|
||||||
|
|
||||||
|
assert.equal(warnings.length, 0);
|
||||||
|
|
||||||
|
console.warn = warn;
|
||||||
|
}
|
Loading…
Reference in new issue