Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 31c4964

Browse files
committedApr 1, 2020
Merge remote-tracking branch 'origin/master' into alpha
2 parents 2816289 + 0cf79dc commit 31c4964

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎test/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ describe('detect-node-support', () => {
6363

6464
listRemoteStub = Sinon.stub().throws();
6565

66-
Sinon.stub(Date, 'now')
67-
.returns(+new Date('2020-02-02T20:00:02Z'));
66+
Sinon.useFakeTimers({
67+
now: +new Date('2020-02-02T20:00:02Z'),
68+
toFake: ['Date']
69+
});
6870

6971
Sinon.stub(Utils, 'simpleGit').callsFake((...args) => {
7072

0 commit comments

Comments
 (0)
Please sign in to comment.