Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
fix: invalid chain spec smoldot test
Browse files Browse the repository at this point in the history
  • Loading branch information
kratico committed Feb 28, 2023
1 parent e2fecdf commit 21e5e6d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions rpc/smoldot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,18 @@ Deno.test({
assertEquals((await message.params?.result as any).event, "initialized")
})

await t.step("invalid chain spec", async () => {
await assertRejects(async () => new SmoldotConnection({ relayChainSpec: "" }), AddChainError)
})
await t.step(
"invalid chain spec",
async () => {
await assertRejects(
async () => {
const connection = new SmoldotConnection({ relayChainSpec: "" })
return connection.smoldotChainPending
},
AddChainError,
)
},
)
},
})

Expand Down

0 comments on commit 21e5e6d

Please sign in to comment.