m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/__tests__
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-07-14 23:46:16 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-07-14 23:46:16 -0400
commit31307362fac9a6d75a373463495aa688cfbc3cd1 (patch)
tree407227eea9ed4d967b5547941c14d264e7028204 /__tests__
parentde517d06737f77a0cfc818c159b388b4e0c4d6b1 (diff)
Define and use the pool function
Diffstat (limited to '__tests__')
-rw-r--r--__tests__/dice.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/__tests__/dice.test.js b/__tests__/dice.test.js
index 4828ce4..83b8a9d 100644
--- a/__tests__/dice.test.js
+++ b/__tests__/dice.test.js
@@ -1,4 +1,4 @@
-const { constant, d, add, subtract } = require('../src/dice.js')
+const { pool, constant, d, add, subtract } = require('../src/dice.js')
const defaultNumberRolls = 500
const defaultError = 0.2
@@ -72,7 +72,7 @@ const rollForTest = (die, numberRolls) => {
let rolls = []
for (let i = 0; i < numberRolls; i++) {
- let rolled = die()
+ let rolled = pool(die)
pools.push(rolled)
rolls.push(rolled.reduce(plus))
}