From 9d33d7d9a262f91b39cdf405484f5ae82782b272 Mon Sep 17 00:00:00 2001 From: Shoham Chakraborty Date: Mon, 21 Nov 2022 22:57:23 +0800 Subject: [PATCH] Change assert order in getMiningInfo.test.ts to match other tests --- .../__tests__/category/mining/getMiningInfo.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jellyfish-api-core/__tests__/category/mining/getMiningInfo.test.ts b/packages/jellyfish-api-core/__tests__/category/mining/getMiningInfo.test.ts index 1dd4edcfba..4825e5ae24 100644 --- a/packages/jellyfish-api-core/__tests__/category/mining/getMiningInfo.test.ts +++ b/packages/jellyfish-api-core/__tests__/category/mining/getMiningInfo.test.ts @@ -39,6 +39,6 @@ describe('Mining', () => { expect(info.networkhashps).toBeGreaterThan(0) expect(info.pooledtx).toStrictEqual(0) expect(info.chain).toStrictEqual('regtest') - expect(['', 'This is a pre-release test build - use at your own risk - do not use for mining or merchant applications']).toContain(info.warnings) + expect(info.warnings).toMatch(/^This is a pre-release test build - use at your own risk - do not use for mining or merchant applications+$|^$/) }) })