We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2816289 + 0cf79dc commit 31c4964Copy full SHA for 31c4964
test/index.js
@@ -63,8 +63,10 @@ describe('detect-node-support', () => {
63
64
listRemoteStub = Sinon.stub().throws();
65
66
- Sinon.stub(Date, 'now')
67
- .returns(+new Date('2020-02-02T20:00:02Z'));
+ Sinon.useFakeTimers({
+ now: +new Date('2020-02-02T20:00:02Z'),
68
+ toFake: ['Date']
69
+ });
70
71
Sinon.stub(Utils, 'simpleGit').callsFake((...args) => {
72
0 commit comments