Add FakeDate object

This commit is contained in:
Javier López Pardo
2013-10-18 15:47:34 +02:00
parent 5aaafed4d8
commit fb8bede8ea
4 changed files with 85 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ getJasmineRequireObj().Env = function(j$) {
var realSetTimeout = j$.getGlobal().setTimeout;
var realClearTimeout = j$.getGlobal().clearTimeout;
this.clock = new j$.Clock(global, new j$.DelayedFunctionScheduler());
this.clock = new j$.Clock(global, new j$.DelayedFunctionScheduler(), new j$.MockDate(global));
var runnableLookupTable = {};