Last active
August 22, 2023 02:39
-
-
Save mcsee/51f09b9c56f077aa2954745c1f43da2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ouagadougou = new Location(); | |
var today = myTimeSource.currentDateIn(ouagadougou); | |
function testGivenAYearHasPassedAccruedInterestsAre10() { | |
var mockTime = new MockedDate(new Date(2021, 1, 1)); | |
var domainSystem = new TimeSystem(mockTime); | |
// .. | |
mockTime.moveDateTo(new Date(2022, 1, 1)); | |
// … You set up the yearly interest rate | |
assertEquals(10, domainSystem.accruedInterests()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment