Skip to content

Commit

Permalink
chore(jellyfish-api-core): Change assert order in `getMiningInfo.test…
Browse files Browse the repository at this point in the history
….ts` to match other tests (#1865)

<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:
Uses to the assertion order used by all other tests. Uses a regex
pattern to match instead of `toContain`.

#### Additional comments?:

As requested in
#1841 (comment)
  • Loading branch information
shohamc1 authored and marktanrj committed Nov 22, 2022
1 parent 66554f7 commit fbbd44f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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+$|^$/)
})
})

0 comments on commit fbbd44f

Please sign in to comment.