Skip to content

Commit

Permalink
lint --fix .
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Aug 19, 2022
1 parent ef706ea commit 86c6db6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"test-ci": "npm run test:install && npm run test:all-ci",
"test-cover": "npm run test:install && c8 npm run test:all",
"lint": "eslint .",
"lint-fix": "eslint --fix .",
"mini:pkg": "npm pkg delete scripts devDependencies",
"prepublishOnly": "npm run lint && npm run test-ci && npm run mini:pkg"
}
Expand Down
2 changes: 0 additions & 2 deletions src/esmock.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { fileURLToPath } from 'url'

import {
esmockModuleMock,
esmockModuleImportedPurge,
Expand Down
3 changes: 2 additions & 1 deletion tests/tests-source-map/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import type * as indexType from "../index.js";
const expectedHostname = "my-machine";

test("using absolute path", async (t) => {
const indexModule = await esmock(fileURLToPath(new URL("../index.js", import.meta.url)), {
const urlFull = fileURLToPath(new URL("../index.js", import.meta.url));
const indexModule = await esmock(urlFull, {
os: {
hostname: () => expectedHostname,
},
Expand Down

0 comments on commit 86c6db6

Please sign in to comment.