[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 Aaron Bohy
parent 629b379ea9
commit f3555cfae0
12 changed files with 214 additions and 214 deletions
+4 -4
View File
@@ -57,14 +57,14 @@ describe("t-model directive", () => {
</div>`;
state = useState({ text: "" });
}
let error;
let error: Error;
try {
await mount(SomeComponent, fixture);
} catch (e) {
error = e;
error = e as Error;
}
expect(error).toBeDefined();
expect(error.message).toBe(`Invalid t-model expression: "state" (it should be assignable)`);
expect(error!).toBeDefined();
expect(error!.message).toBe(`Invalid t-model expression: "state" (it should be assignable)`);
});
test("basic use, on another key in component", async () => {