Skip to content

Commit

Permalink
fixup! fix: lib/team.js tweaks and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyadorno committed Dec 9, 2020
1 parent 0f37c75 commit 9cb7d62
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/lib/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ t.test('team ls <scope>', t => {
'npmcli:designers',
'npmcli:product',
]
}
},
}

const team = requireInject('../../lib/team.js', {
Expand Down Expand Up @@ -293,7 +293,7 @@ t.test('team ls <scope>', t => {
const libnpmteam = {
async lsTeams () {
return []
}
},
}

const team = requireInject('../../lib/team.js', {
Expand All @@ -314,7 +314,7 @@ t.test('team ls <scope>', t => {
const libnpmteam = {
async lsTeams () {
return ['npmcli:developers']
}
},
}

const team = requireInject('../../lib/team.js', {
Expand All @@ -337,8 +337,8 @@ t.test('team ls <scope>', t => {
t.test('team ls <scope:team>', t => {
const libnpmteam = {
async lsUsers () {
return [ 'nlf', 'ruyadorno', 'darcyclarke', 'isaacs' ]
}
return ['nlf', 'ruyadorno', 'darcyclarke', 'isaacs']
},
}
const team = requireInject('../../lib/team.js', {
...mocks,
Expand Down Expand Up @@ -404,7 +404,7 @@ t.test('team ls <scope:team>', t => {
const libnpmteam = {
async lsUsers () {
return []
}
},
}

const team = requireInject('../../lib/team.js', {
Expand All @@ -425,7 +425,7 @@ t.test('team ls <scope:team>', t => {
const libnpmteam = {
async lsUsers () {
return ['foo']
}
},
}

const team = requireInject('../../lib/team.js', {
Expand Down Expand Up @@ -547,7 +547,7 @@ t.test('completion', t => {
res()
}))

await ['create', 'destroy', 'add', 'rm', 'ls'].map(check)
await ['create', 'destroy', 'add', 'rm', 'ls'].map(check)
})

t.test('npm team unknown subcommand autocomplete', t => {
Expand Down

0 comments on commit 9cb7d62

Please sign in to comment.