mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Adapt test to new TypeScript 4.3 error message
This commit is contained in:
parent
6ce7aa12d0
commit
51e5ce3c3d
@ -40,7 +40,7 @@ describe("TsRepl", () => {
|
|||||||
await new TsRepl(tsConfigPath, "const const const;")
|
await new TsRepl(tsConfigPath, "const const const;")
|
||||||
.start()
|
.start()
|
||||||
.then(() => fail("must not resolve"))
|
.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 () => {
|
it("can be started with top level await", async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user