Skip to content

Commit 8b30ce1

Browse files
committed
Loosen restriction on network infos keys on tests
It was expecting a strict equality, a looser `contains` should be more correct as adding infos to the api should not break the clientlib
1 parent 6ab5958 commit 8b30ce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/CurrencyNetwork.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('e2e', () => {
4141

4242
it('should return registered networks', () => {
4343
expect(networks).to.have.length.above(0, 'No registered networks')
44-
expect(networks[0]).to.have.all.keys(networkInfoKeys)
44+
expect(networks[0]).to.contains.keys(networkInfoKeys)
4545
expect(networks[0].abbreviation).to.be.a('string')
4646
expect(networks[0].address)
4747
.to.be.a('string')
@@ -64,7 +64,7 @@ describe('e2e', () => {
6464
describe('#getInfo()', () => {
6565
it('should return detailed information of specific currency network', async () => {
6666
const networkInfo = await currencyNetwork.getInfo(networks[0].address)
67-
expect(networkInfo).to.have.all.keys(networkInfoKeys)
67+
expect(networkInfo).to.contains.keys(networkInfoKeys)
6868
expect(networkInfo.abbreviation).to.be.a('string')
6969
expect(networkInfo.address)
7070
.to.be.a('string')

0 commit comments

Comments
 (0)