[IMP] misc: update typescript to 4.5.2

This commit is contained in:
Samuel Degueldre
2021-11-19 14:35:25 +01:00
committed by Géry Debongnie
parent 757dffefac
commit 7f49796a07
12 changed files with 214 additions and 214 deletions
+4 -4
View File
@@ -205,14 +205,14 @@ describe("t-component", () => {
static components = { Child };
static template = xml`<div><div t-component="Child"/></div>`;
}
let error;
let error: Error;
try {
await mount(Parent, fixture);
} catch (e) {
error = e;
error = e as Error;
}
expect(error).toBeDefined();
expect(error.message).toBe(
expect(error!).toBeDefined();
expect(error!.message).toBe(
`Directive 't-component' can only be used on <t> nodes (used on a <div>)`
);
});