Don't refer to window for the sake of Node specs

This commit is contained in:
Greg Cobb and JR Boyens
2013-07-18 13:59:25 -07:00
parent 3e2d9baec2
commit 821f13dff5

View File

@@ -14,13 +14,13 @@ describe("DelayedFunctionScheduler", function() {
it("schedules a string for later execution", function() {
var scheduler = new j$.DelayedFunctionScheduler(),
strfn = "window.horrible = true;";
strfn = "horrible = true;";
scheduler.scheduleFunction(strfn, 0);
scheduler.tick(0);
expect(window.horrible).toEqual(true);
expect(horrible).toEqual(true);
});
it("#tick defaults to 0", function() {