mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] component: move template check in constructor
This commit is contained in:
committed by
Aaron Bohy
parent
e7516be95c
commit
cedb1f411f
@@ -89,9 +89,8 @@ describe("basic widget properties", () => {
|
||||
test("crashes if it cannot find a template", async () => {
|
||||
expect.assertions(1);
|
||||
class SomeWidget extends Component<any, any> {}
|
||||
const widget = new SomeWidget(env);
|
||||
try {
|
||||
await widget.mount(fixture);
|
||||
new SomeWidget(env);
|
||||
} catch (e) {
|
||||
expect(e.message).toBe('Could not find template for component "SomeWidget"');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user