1
Fork 0

typescript(option): test: refactored tests to use alwaysX instead of constantly(x)

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-12-26 16:37:04 +02:00 committed by prescientmoon
parent ab5e468375
commit bf3fc154e3
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -38,10 +38,10 @@ describe('The unpack helper', () => {
it('should not call the lazy default', () => { it('should not call the lazy default', () => {
// arrange // arrange
const func = spy(constantly(x)) const func = spy(alwaysX)
// act // act
unpack(func, constantly(x), someX) unpack(func, alwaysX, someX)
// assert // assert
expect(func.called).to.be.false expect(func.called).to.be.false