From 6d0c3e3a1d910ec112737ddee704e8068a135fb6 Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Sun, 17 Sep 2023 14:56:27 +0000 Subject: [PATCH] test/workspaces: await rejected promise. --- test/workspaces.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/workspaces.test.ts b/test/workspaces.test.ts index 0841c2cc..b758ea8b 100644 --- a/test/workspaces.test.ts +++ b/test/workspaces.test.ts @@ -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 () => { @@ -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 () => {