pull/2023/head
Richard Harris 6 years ago
parent f7d4d14f0c
commit d9e80738c7

@ -93,6 +93,8 @@ export default class Component {
options: CompileOptions,
stats: Stats
) {
this.name = name;
this.stats = stats;
this.ast = ast;
this.source = source;

@ -4,6 +4,6 @@ export default {
},
warnings: [
`<Main$> was created without expected prop 'value'`
`<Main> was created without expected prop 'value'`
]
};

@ -4,6 +4,6 @@ export default {
},
warnings: [
`<Foo$> was created without expected prop 'y'`
`<Foo> was created without expected prop 'y'`
]
};

@ -4,7 +4,7 @@ export default {
},
warnings: [
`<Main$> was created without expected prop 'foo'`,
`<Main$> was created without expected prop 'bar'`
`<Main> was created without expected prop 'foo'`,
`<Main> was created without expected prop 'bar'`
]
};

@ -12,7 +12,7 @@ export default {
component.foo = 1;
throw new Error( 'Expected an error' );
} catch ( err ) {
assert.equal( err.message, `<Main$>: Cannot set read-only property 'foo'` );
assert.equal( err.message, `<Main>: Cannot set read-only property 'foo'` );
}
}
};

@ -8,7 +8,7 @@ export default {
component.width = 99;
throw new Error('Expected an error');
} 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…
Cancel
Save