Intern functional test: mock datetime -


i'm new intern test. know can mock datetime intern functional testing (example: test run 3 days ahead of today).

lolex (https://github.com/sinonjs/lolex) used sinon.js mock date.

it replaces date own implementation (https://github.com/sinonjs/lolex/blob/master/lolex.js#l477-l479).


Comments

Popular posts from this blog

objective c - Deep Linking for iOS Apps which are not installed yet? -

Changing nested dictionary in VBA -

javascript - SignalR sharing connection between 2 apps -