pull/7738/head
Richard Harris 7 years ago
parent a1267d3e09
commit 6676b11f13

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

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

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

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

@ -12,7 +12,7 @@ export default {
component.foo = 1; component.foo = 1;
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 'foo'` ); assert.equal( err.message, `<Main>: Cannot set read-only property 'foo'` );
} }
} }
}; };

@ -8,7 +8,7 @@ export default {
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…
Cancel
Save