typescript(option): test: refactored tests to use alwaysX instead of constantly(x)
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
ab5e468375
commit
bf3fc154e3
|
@ -38,10 +38,10 @@ describe('The unpack helper', () => {
|
|||
|
||||
it('should not call the lazy default', () => {
|
||||
// arrange
|
||||
const func = spy(constantly(x))
|
||||
const func = spy(alwaysX)
|
||||
|
||||
// act
|
||||
unpack(func, constantly(x), someX)
|
||||
unpack(func, alwaysX, someX)
|
||||
|
||||
// assert
|
||||
expect(func.called).to.be.false
|
||||
|
|
Loading…
Reference in a new issue