Skip to content

Commit

Permalink
test case for sinonjs#59
Browse files Browse the repository at this point in the history
  • Loading branch information
gautaz committed May 27, 2016
1 parent 12567d2 commit 208be66
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/lolex-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@ var GlobalDate = Date;
var NOOP = function NOOP() { return undefined; };
var hrtimePresent = (global.process && typeof global.process.hrtime === "function");

describe("lolex clock hook", function () {
var context = {
Date: Date,
setTimeout: setTimeout,
clearTimeout: clearTimeout
};
var clock;

it("replaces the clock", function () {
clock = lolex.install(context);
});

it("restores the original clock", function () {
clock.uninstall();
});
});

describe("lolex", function () {

describe("setTimeout", function () {
Expand Down

0 comments on commit 208be66

Please sign in to comment.