Skip to content

Commit

Permalink
Update cli.edge-cases.test.js
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck authored Dec 22, 2024
1 parent 36627c1 commit 0cddfe6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/integration/cli.edge-cases.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
*/

const { join } = require('path')
const { mkdirSync, writeFileSync, readFileSync } = require('fs')
const { writeFileSync, readFileSync } = require('fs')

const { describe, expect, test } = require('@jest/globals')

Expand All @@ -32,7 +32,6 @@ describe('integration.cli.edge-cases', () => {

describe('broken project', () => {
const tmpRootRun = join(tmpRoot, 'broken-project')
mkdirSync(tmpRootRun)

test.each([
['no-lockfile', /missing evidence/i],
Expand All @@ -54,7 +53,6 @@ describe('integration.cli.edge-cases', () => {

describe('with broken npm-ls', () => {
const tmpRootRun = join(tmpRoot, 'with-broken')
mkdirSync(tmpRootRun)

test('error on non-existing binary', async () => {
const logFileBase = join(tmpRootRun, 'non-existing')
Expand Down Expand Up @@ -115,7 +113,6 @@ describe('integration.cli.edge-cases', () => {
test('suppressed error on non-zero exit', async () => {
const dd = { subject: 'dev-dependencies', npm: '8', node: '14', os: 'ubuntu-latest' }

mkdirSync(join(tmpRoot, 'suppressed-error-on-non-zero-exit'))
const expectedOutSnap = join(demoResultsRoot, 'suppressed-error-on-non-zero-exit', `${dd.subject}_npm${dd.npm}_node${dd.node}_${dd.os}.snap.json`)
const logFileBase = join(tmpRoot, 'suppressed-error-on-non-zero-exit', `${dd.subject}_npm${dd.npm}_node${dd.node}_${dd.os}`)
const cwd = dummyProjectsRoot
Expand Down

0 comments on commit 0cddfe6

Please sign in to comment.