diff --git a/test/system/orgs:data/generic.test.ts b/test/system/orgs:data/generic.test.ts index ad987709..6a46959d 100644 --- a/test/system/orgs:data/generic.test.ts +++ b/test/system/orgs:data/generic.test.ts @@ -13,7 +13,7 @@ describe('General `snyk-api-import orgs:data <...>`', () => { { env: { PATH: process.env.PATH, - GITHUB_TOKEN: process.env.GH_TOKEN, + GITHUB_TOKEN: process.env.GITHUB_TOKEN, SNYK_LOG_PATH: __dirname, }, }, diff --git a/test/system/orgs:data/github.test.ts b/test/system/orgs:data/github.test.ts index 0ddcd3c9..b5c91f76 100644 --- a/test/system/orgs:data/github.test.ts +++ b/test/system/orgs:data/github.test.ts @@ -15,7 +15,7 @@ describe('General `snyk-api-import orgs:data <...>`', () => { { env: { PATH: process.env.PATH, - GITHUB_TOKEN: process.env.GH_TOKEN, + GITHUB_TOKEN: process.env.GITHUB_TOKEN, SNYK_LOG_PATH: __dirname, }, }, @@ -26,7 +26,7 @@ describe('General `snyk-api-import orgs:data <...>`', () => { expect(stderr).toEqual(''); expect(err).toBeNull(); expect(stdout).toMatch( - 'Found 4 organization(s). Written the data to file: group-hello-github.aaakk.us.kg-orgs.json', + 'Found 2 organization(s). Written the data to file: group-hello-github.aaakk.us.kg-orgs.json', ); deleteFiles([ path.resolve(__dirname, `group-${groupId}-github.aaakk.us.kg-orgs.json`),