From bf3fc154e3a1741f1fe4d41291a7e8d56a208d9d Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Thu, 26 Dec 2019 16:37:04 +0200 Subject: [PATCH] typescript(option): test: refactored tests to use alwaysX instead of constantly(x) Signed-off-by: prescientmoon --- typescript/option/src/helpers/unpack.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/option/src/helpers/unpack.test.ts b/typescript/option/src/helpers/unpack.test.ts index f3ebec1..802f6aa 100644 --- a/typescript/option/src/helpers/unpack.test.ts +++ b/typescript/option/src/helpers/unpack.test.ts @@ -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