Skip to content

Commit

Permalink
fix: assertPublishNock
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed Dec 4, 2024
1 parent 5c25815 commit 55585d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/lib/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const pkgJson = {
version: '1.0.0',
}

const packageNock = (t, registry, name, {
const assertPublishNock = (t, registry, name, {
packageJson, access, noPut, putStatus, manifest,
} = {}) => {
const spec = npa(name)
Expand All @@ -37,8 +37,6 @@ const packageNock = (t, registry, name, {
return registry.nock
}

const assertPublishNock = packageNock

t.cleanSnapshot = data => cleanZlib(data)

t.test('respects publishConfig.registry, runs appropriate scripts', async t => {
Expand Down

0 comments on commit 55585d4

Please sign in to comment.