Skip to content

Instantly share code, notes, and snippets.



Last active Nov 30, 2020
What would you like to do?
var ouagadougou = new Location();
var today = myTimeSource.currentDateIn(ouagadougou);
function testTimePasses() {
$mockTime = new MockedDate(new Date(1,1,2021));
myDomainSystem = new TimeSystem(new MockedTime());
$mockTime.moveDateTo(new Date(1,1,2022));
this.assert(10, myDomainSystem.accuredInterests());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment