[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
@@ -338,16 +338,16 @@ describe("style and class handling", () => {
static template = xml`<Child class="'a'"/>`;
static components = { Child };
}
let error;
let error: Error;
try {
await mount(ParentWidget, fixture);
} catch (e) {
error = e;
error = e as Error;
}
expect(error).toBeDefined();
expect(error!).toBeDefined();
const regexp =
/Cannot read properties of undefined \(reading 'crash'\)|Cannot read property 'crash' of undefined/g;
expect(error.message).toMatch(regexp);
expect(error!.message).toMatch(regexp);
expect(fixture.innerHTML).toBe("");
});
});