diff options
Diffstat (limited to 'test/lib/outdated.js')
-rw-r--r-- | test/lib/outdated.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/lib/outdated.js b/test/lib/outdated.js index 76e97ff52..518436d0a 100644 --- a/test/lib/outdated.js +++ b/test/lib/outdated.js @@ -83,10 +83,6 @@ const globalDir = t.testdir({ }, }) -const flatOptions = { - workspacesEnabled: true, -} - const outdated = (dir, opts) => { logs = '' const Outdated = t.mock('../../lib/outdated.js', { @@ -98,7 +94,6 @@ const outdated = (dir, opts) => { ...opts, localPrefix: dir, prefix: dir, - flatOptions, globalDir: `${globalDir}/node_modules`, output, }) @@ -567,30 +562,6 @@ t.test('workspaces', async t => { }) await new Promise((res, rej) => { - flatOptions.workspacesEnabled = false - outdated(testDir, {}).exec([], err => { - if (err) - rej(err) - - t.matchSnapshot(logs, 'should display only root outdated when ws disabled') - flatOptions.workspacesEnabled = true - res() - }) - }) - - await new Promise((res, rej) => { - flatOptions.workspacesEnabled = false - outdated(testDir, {}).exec([], err => { - if (err) - rej(err) - - t.matchSnapshot(logs, 'should display only root outdated when ws disabled') - flatOptions.workspacesEnabled = true - res() - }) - }) - - await new Promise((res, rej) => { outdated(testDir, { config: { json: true, |