Skip to content

Commit beb16ab

Browse files
ezewerJacobPlaster
authored andcommitted
Simplify array creation for tests
1 parent def6c6a commit beb16ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/lib/models/currency.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ describe('Currency model', () => {
2222
id: new Array(...(new Array(5))).map(() => Math.random()),
2323
name: VALID_STRINGS,
2424
pool: VALID_STRINGS,
25-
explorer: new Array(...(new Array(5))).map(() => []),
26-
walletFx: new Array(...(new Array(5))).map(() => [])
25+
explorer: new Array(5).fill([]),
26+
walletFx: new Array(5).fill([])
2727
}
2828
})
2929
})

0 commit comments

Comments
 (0)