diff --git a/__test__/command-helper.test.ts b/__test__/command-helper.test.ts index 1c07759..568ee71 100644 --- a/__test__/command-helper.test.ts +++ b/__test__/command-helper.test.ts @@ -21,8 +21,7 @@ describe('command-helper tests', () => { permission: 'write', issueType: 'both', allowEdits: false, - // Should be the value of github.repository, but '' for tests - repository: '', + repository: 'peter-evans/slash-command-dispatch', eventTypeSuffix: '-command', staticArgs: [], dispatchType: 'repository', diff --git a/jest.config.js b/jest.config.js index 14e44f9..6a08d6f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -9,3 +9,6 @@ module.exports = { }, verbose: true } +process.env = Object.assign(process.env, { + GITHUB_REPOSITORY: "peter-evans/slash-command-dispatch" +})