From bcff763f1386780d2352cd775ad3320cdfd9f482 Mon Sep 17 00:00:00 2001 From: Alex Nitu Date: Tue, 25 Jun 2024 16:54:04 +0300 Subject: [PATCH] fix: remove stderr assertion from happy path test --- test/system/sync.test.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/system/sync.test.ts b/test/system/sync.test.ts index f14d84f2..f4df5fe4 100644 --- a/test/system/sync.test.ts +++ b/test/system/sync.test.ts @@ -164,10 +164,7 @@ describe('`snyk-api-import sync <...>`', () => { GITHUB_TOKEN: process.env.TEST_GHE_TOKEN, }, }, - async (err, stdout, stderr) => { - expect(stderr).toEqual( - `Failed to sync target api-import-circle-test/deleted-repo. ERROR: Cannot read properties of undefined (reading 'branch')\n`, - ); + async (err, stdout) => { expect(err).toBeNull(); expect(stdout).toMatch( 'Done syncing targets for source github-enterprise',