Skip to content

Commit

Permalink
fixup: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Nov 14, 2024
1 parent ebb4939 commit 7b11957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mock-registry/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const auditToBulk = audit => {
return bulk
}


class MockRegistry {
#tap
#nock
Expand Down Expand Up @@ -494,7 +493,7 @@ class MockRegistry {
mocks ({ dir }) {
const exists = (p) => fs.stat(p).then(() => true).catch(() => false)
this.nock = this.nock.get(/.*/).reply(async function (uri) {
const { headers, path: url} = this.req
const { headers, path: url } = this.req
const isCorgi = headers.accept.includes('application/vnd.npm.install-v1+json')
const f = path.join(dir, 'registry-mocks', 'content', path.join('/', url.replace(/@/g, '').replace(/%2f/gi, '/')))
let file = f
Expand All @@ -515,9 +514,10 @@ class MockRegistry {
body.pause()
return [200, body, { 'content-type': contentType }]
}
return [404, { error: 'not found' }]
return [404, { error: 'not found' }]
}).persist()
}

/**
* this is a simpler convience method for creating mockable registry with
* tarballs for specific versions
Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/test/arborist/build-ideal-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ t.test('testing-peer-deps package with symlinked root', async t => {
createRegistry(t, true)
const idealTree = await buildIdeal(path)
t.ok(idealTree.isLink, 'ideal tree is rooted on a Link')
const arb = newArb(path, { idealTree})
const arb = newArb(path, { idealTree })
const tree2 = await arb.buildIdealTree()
t.equal(tree2, idealTree)
t.matchSnapshot(printTree(idealTree), 'build ideal tree with peer deps')
Expand Down

0 comments on commit 7b11957

Please sign in to comment.