From 10afdcdd0c4705e9bd3e8022c190e911d09d5ef6 Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Thu, 8 Aug 2024 13:44:17 +1200 Subject: [PATCH] fix test --- packages/e2e/src/chopsticks-provider.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/e2e/src/chopsticks-provider.test.ts b/packages/e2e/src/chopsticks-provider.test.ts index 38b1b7c8..a29447d4 100644 --- a/packages/e2e/src/chopsticks-provider.test.ts +++ b/packages/e2e/src/chopsticks-provider.test.ts @@ -66,9 +66,9 @@ describe('chopsticks provider works', async () => { }) it('system rpc', async () => { - expect(await api.rpc.system.chain()).toMatch('Acala') - expect(await api.rpc.system.name()).toMatch('Subway') - expect(await api.rpc.system.version()).toBeInstanceOf(String) + expect((await api.rpc.system.chain()).toString()).toMatch('Acala') + expect((await api.rpc.system.name()).toString()).toMatch('Subway') + expect((await api.rpc.system.version()).toString()).toMatch('chopsticks-v1') expect(await api.rpc.system.properties()).not.toBeNull() await check(api.rpc.system.health()).toMatchObject({ peers: 0,