Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky committed Oct 19, 2020
1 parent 0036858 commit d06b2ea
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/browser/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @jest-environment jsdom
*/
process.hrtime = undefined;
import elapsed from "../../lib/elapsed-time-logger";
import elapsed from "../../dist/elapsed-time-logger";

console.log = jest.fn();
describe("Log function", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/browser/get.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process.hrtime = undefined;
import elapsed from "../../lib/elapsed-time-logger";
import elapsed from "../../dist/elapsed-time-logger";

const timer = elapsed.start('test');
jest.spyOn(timer, "_diff").mockReturnValue([100, 1200]);
Expand Down
2 changes: 1 addition & 1 deletion tests/browser/labels.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process.hrtime = undefined;
import elapsed from "../../lib/elapsed-time-logger";
import elapsed from "../../dist/elapsed-time-logger";

console.warn = jest.fn();
console.log = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion tests/browser/parse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process.hrtime = undefined;
import elapsed from "../../lib/elapsed-time-logger";
import elapsed from "../../dist/elapsed-time-logger";

describe("Parse function", () => {
it('should return 20 hours 3 minutes 36 seconds', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/node/default.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const elapsed = require("../../lib/elapsed-time-logger");
const elapsed = require("../../dist/elapsed-time-logger");

console.log = jest.fn();
describe("Log function", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/node/get.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const elapsed = require("../../lib/elapsed-time-logger");
const elapsed = require("../../dist/elapsed-time-logger");

const timer = elapsed.start('test');
jest.spyOn(timer, "_diff").mockReturnValue([100, 1200]);
Expand Down
2 changes: 1 addition & 1 deletion tests/node/labels.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const elapsed = require("../../lib/elapsed-time-logger");
const elapsed = require("../../dist/elapsed-time-logger");

console.warn = jest.fn();
console.log = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion tests/node/parse.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const elapsed = require("../../lib/elapsed-time-logger");
const elapsed = require("../../dist/elapsed-time-logger");

describe("Parse function", () => {
it('should return 20 hours 3 minutes 36 seconds', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/umd.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<!-- <script crossorigin src="https://unpkg.com/elapsed-time-logger/lib/umd/index.js"></script> -->
<script src="../lib/elapsed-time-logger.min.js"></script>
<script src="../dist/elapsed-time-logger.min.js"></script>
<script>
var elapsed = elapsedLogger;
elapsed.start('test2');
Expand Down

0 comments on commit d06b2ea

Please sign in to comment.