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