Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7994

Increase timeStamp during Anchor Test cases of TS(typescipt)

$
0
0

How to increase timeStamp during Anchor Test cases of TS(typescipt),I have use sinon pkg but It's not happeningconst clockStub = sinon.stub(Date, 'now').returns(Date.now() + (15 * 24 * 3600 * 1000)); // Add 15 days in milliseconds

What are the other ways?


Viewing all articles
Browse latest Browse all 7994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>