Skip to content

Commit 0a9e4a2

Browse files
committed
fix lint errors
1 parent 2429cc4 commit 0a9e4a2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

test/commands/install.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ test("install should dedupe dependencies avoiding conflicts 0", () => {
156156
let rawDepBPackage = await fs.readFile(path.join(config.cwd, "node_modules/dep-b/package.json"));
157157
assert.equal(JSON.parse(rawDepBPackage).version, "1.0.0");
158158

159-
rawDepBPackage = await fs.readFile(path.join(config.cwd, "node_modules/dep-a/node_modules/dep-b/package.json"));
159+
rawDepBPackage = await fs.readFile(
160+
path.join(config.cwd, "node_modules/dep-a/node_modules/dep-b/package.json")
161+
);
160162
assert.equal(JSON.parse(rawDepBPackage).version, "2.0.0");
161163
});
162164
});

test/lockfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ test("Lockfile.getLocked", (t) => {
7171
foo: "bar",
7272
bar: {}
7373
});
74-
t.ok(!!lockfile.getLocked("foo"));
74+
ok.truthy(!!lockfile.getLocked("foo"));
7575
});
7676

7777
test("Lockfile.getLocked pointer", (t) => {
7878
let lockfile = new Lockfile({
7979
foo: "bar",
8080
bar: {}
8181
});
82-
t.ok(!!lockfile.getLocked("foo"));
82+
ok.truthy(!!lockfile.getLocked("foo"));
8383
});
8484

8585
test("Lockfile.getLocked no cache", (t) => {
86-
t.ok(!new Lockfile().getLocked("foobar"));
86+
ok.truthy(!new Lockfile().getLocked("foobar"));
8787
});
8888

8989
test("Lockfile.getLocked defaults", (t) => {

0 commit comments

Comments
 (0)