Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active August 22, 2023 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/51f09b9c56f077aa2954745c1f43da2c to your computer and use it in GitHub Desktop.
Save mcsee/51f09b9c56f077aa2954745c1f43da2c to your computer and use it in GitHub Desktop.
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