Skip to content

Commit

Permalink
➖ Remove lolex
Browse files Browse the repository at this point in the history
`sinon` has ships with its own fake timers, so let's just use those.
  • Loading branch information
alecgibson committed Aug 15, 2023
1 parent 3651340 commit d708bcd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"coveralls": "^3.1.1",
"eslint": "^7.32.0",
"eslint-config-google": "^0.14.0",
"lolex": "^5.1.2",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"ot-json0-v2": "https://github.com/ottypes/json0#90a3ae26364c4fa3b19b6df34dad46707a704421",
Expand Down
3 changes: 1 addition & 2 deletions test/client/snapshot-timestamp-request.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var Backend = require('../../lib/backend');
var expect = require('chai').expect;
var lolex = require('lolex');
var MemoryDb = require('../../lib/db/memory');
var MemoryMilestoneDb = require('../../lib/milestone-db/memory');
var sinon = require('sinon');
Expand All @@ -18,7 +17,7 @@ describe('SnapshotTimestampRequest', function() {
var ONE_DAY = 1000 * 60 * 60 * 24;

beforeEach(function() {
clock = lolex.install({now: day1});
clock = sinon.useFakeTimers(day1);
backend = new Backend();
});

Expand Down

0 comments on commit d708bcd

Please sign in to comment.