Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6e73f6f1989bd0daea888fdb9a0c29c37e71d97b
Choose a base ref
..
head repository: npm/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7422465d8d6255f3689af8a95044aa202903d6dd
Choose a head ref
Showing with 8 additions and 8 deletions.
  1. +8 −8 test/lib/pack.js
16 changes: 8 additions & 8 deletions test/lib/pack.js
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ t.test('should pack current directory with no arguments', (t) => {
const pack = new Pack(npm)

pack.exec([], err => {
t.error(err)
t.error(err, { bail: true })

const filename = `npm-${require('../../package.json').version}.tgz`
t.strictSame(OUTPUT, [[filename]])
@@ -81,7 +81,7 @@ t.test('should pack given directory', (t) => {
const pack = new Pack(npm)

pack.exec([testDir], err => {
t.error(err)
t.error(err, { bail: true })

const filename = 'my-cool-pkg-1.0.0.tgz'
t.strictSame(OUTPUT, [[filename]])
@@ -116,7 +116,7 @@ t.test('should pack given directory for scoped package', (t) => {
const pack = new Pack(npm)

return pack.exec([testDir], err => {
t.error(err)
t.error(err, { bail: true })

const filename = 'cool-my-pkg-1.0.0.tgz'
t.strictSame(OUTPUT, [[filename]])
@@ -150,7 +150,7 @@ t.test('should log pack contents', (t) => {
const pack = new Pack(npm)

pack.exec([], err => {
t.error(err)
t.error(err, { bail: true })

const filename = `npm-${require('../../package.json').version}.tgz`
t.strictSame(OUTPUT, [[filename]])
@@ -232,7 +232,7 @@ t.test('workspaces', (t) => {

t.test('all workspaces', (t) => {
pack.execWorkspaces([], [], err => {
t.error(err)
t.error(err, { bail: true })

t.strictSame(OUTPUT, [
['workspace-a-1.0.0.tgz'],
@@ -244,7 +244,7 @@ t.test('workspaces', (t) => {

t.test('all workspaces, `.` first arg', (t) => {
pack.execWorkspaces(['.'], [], err => {
t.error(err)
t.error(err, { bail: true })

t.strictSame(OUTPUT, [
['workspace-a-1.0.0.tgz'],
@@ -256,7 +256,7 @@ t.test('workspaces', (t) => {

t.test('one workspace', (t) => {
pack.execWorkspaces([], ['workspace-a'], err => {
t.error(err)
t.error(err, { bail: true })

t.strictSame(OUTPUT, [
['workspace-a-1.0.0.tgz'],
@@ -267,7 +267,7 @@ t.test('workspaces', (t) => {

t.test('specific package', (t) => {
pack.execWorkspaces(['abbrev'], [], err => {
t.error(err)
t.error(err, { bail: true })

t.strictSame(OUTPUT, [
['abbrev-1.0.0-test.tgz'],