Skip to content

Commit

Permalink
test/workspaces: await rejected promise.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Sep 17, 2023
1 parent a72c284 commit 6d0c3e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/workspaces.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ describe('workspaces', () => {
describe('--workspaces', function () {
this.timeout(60000)

it('do not allow --workspaces and --deep together', () => {
ncu({ workspaces: true, deep: true }).should.eventually.be.rejectedWith('Cannot specify both')
it('do not allow --workspaces and --deep together', async () => {
await ncu({ workspaces: true, deep: true }).should.eventually.be.rejectedWith('Cannot specify both')
})

it('update workspaces with --workspaces', async () => {
Expand Down Expand Up @@ -259,12 +259,12 @@ describe('workspaces', () => {
describe('--workspace', function () {
this.timeout(60000)

it('do not allow --workspace and --deep together', () => {
ncu({ workspace: ['a'], deep: true }).should.eventually.be.rejectedWith('Cannot specify both')
it('do not allow --workspace and --deep together', async () => {
await ncu({ workspace: ['a'], deep: true }).should.eventually.be.rejectedWith('Cannot specify both')
})

it('do not allow --workspace and --workspaces together', () => {
ncu({ workspace: ['a'], deep: true }).should.eventually.be.rejectedWith('Cannot specify both')
it('do not allow --workspace and --workspaces together', async () => {
await ncu({ workspace: ['a'], deep: true }).should.eventually.be.rejectedWith('Cannot specify both')
})

it('update single workspace with --workspace', async () => {
Expand Down

0 comments on commit 6d0c3e3

Please sign in to comment.