Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Jan 3, 2018
1 parent 68a07b5 commit 6525877
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ node_js:
- "8"
- stable

cache: yarn

script:
- yarn test
- yarn lint
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"jest": "^22.0.4"
},
"scripts": {
"test": "jest"
"test": "jest",
"lint": "eslint ."
},
"files": [
"lib",
Expand Down
2 changes: 1 addition & 1 deletion test/primitives/global-monotonic-clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const DELTA = 20; // ±20 ms
const NUM_DIGITS = -Math.log10(DELTA * 2);

function testGlobalMonotonicClock(FACTOR = 1) {
let clockDriftDesc = FACTOR !== 1 ? " and is not affected by clock drift" : "";
const clockDriftDesc = FACTOR !== 1 ? " and is not affected by clock drift" : "";
test("global monotonic clock corresponds with setTimeout" + clockDriftDesc, () => {
const startDateNow = Date.now();
const startGlobalMonotonicClock = getGlobalMonotonicClockMS();
Expand Down

0 comments on commit 6525877

Please sign in to comment.