mirror of https://github.com/sveltejs/svelte
parent
4231c62dbc
commit
83318b6bf5
@ -1,14 +1,16 @@
|
|||||||
export default {
|
export default {
|
||||||
|
solo: 1,
|
||||||
|
|
||||||
compileOptions: {
|
compileOptions: {
|
||||||
dev: true
|
dev: true
|
||||||
},
|
},
|
||||||
|
|
||||||
test ( assert, component ) {
|
test(assert, component) {
|
||||||
try {
|
try {
|
||||||
component.width = 99;
|
component.width = 99;
|
||||||
throw new Error( 'Expected an error' );
|
throw new Error('Expected an error');
|
||||||
} catch ( err ) {
|
} catch (err) {
|
||||||
assert.equal( err.message, `<Main$>: Cannot set read-only property 'width'` );
|
assert.equal(err.message, `<Main$>: Cannot set read-only property 'width'`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in new issue