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+$|^$/) }) })