Adapt test to new TypeScript 4.3 error message

This commit is contained in:
Simon Warta 2021-07-20 16:50:37 +02:00
parent 6ce7aa12d0
commit 51e5ce3c3d

View File

@ -40,7 +40,7 @@ describe("TsRepl", () => {
await new TsRepl(tsConfigPath, "const const const;")
.start()
.then(() => fail("must not resolve"))
.catch((e) => expect(e).toMatch(/Variable declaration expected./));
.catch((e) => expect(e).toMatch(/'const' is not allowed as a variable declaration name./));
});
it("can be started with top level await", async () => {