diff --git a/package.json b/package.json index d7743c6..4d7f166 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "main": "app.js", "scripts": { "start": "node app.js", - "test": "GITHUB_TOKEN='00000' GITHUB_REPOSITORY='waffleio/waffle.io' GITHUB_EVENT_PATH='./tests/fixtures/actionTrigger.json' jest" + "test": "GITHUB_TOKEN='00000' GITHUB_REPOSITORY='adamzolyak/actions-playground' GITHUB_EVENT_PATH='./tests/fixtures/actionTrigger.json' jest" }, "repository": { "type": "git", diff --git a/tests/helpers.test.js b/tests/helpers.test.js index 72c7776..6d9e865 100644 --- a/tests/helpers.test.js +++ b/tests/helpers.test.js @@ -6,15 +6,15 @@ octokit.authenticate = jest.fn() describe('getOwner', () => { it('should return owner when passed GITHUB_REPOSITORY env variable', () => { - const result = helpers.getOwner('waffleio/waffle.io') - expect(result).toBe('waffleio') + const result = helpers.getOwner('adamzolyak/actions-playground') + expect(result).toBe('adamzolyak') }) }) describe('getRepo', () => { it('should return repo when passed GITHUB_REPOSITORY env variable', () => { - const result = helpers.getRepo('waffleio/waffle.io') - expect(result).toBe('waffle.io') + const result = helpers.getRepo('adamzolyak/actions-playground') + expect(result).toBe('actions-playground') }) }) @@ -51,8 +51,8 @@ describe('addLabel', () => { const result = await helpers.addLabel( octokit, - 'waffleio', - 'waffle.io', + 'adamzolyak', + 'actions-playground', '1', 'Incomplete Tasks' ) @@ -79,7 +79,11 @@ describe('getRepoLabels', () => { } } - const result = await helpers.getRepoLabels(octokit, 'waffleio', 'waffle.io') + const result = await helpers.getRepoLabels( + octokit, + 'adamzolyak', + 'actions-playground' + ) expect(octokit.issues.listLabelsForRepo).toHaveBeenCalledTimes(1) expect(result).toBe(repoLabels) @@ -93,7 +97,11 @@ describe('getRepoLabels', () => { } } - const result = await helpers.getRepoLabels(octokit, 'waffleio', 'waffle.io') + const result = await helpers.getRepoLabels( + octokit, + 'adamzolyak', + 'actions-playground' + ) expect(octokit.issues.listLabelsForRepo).toHaveBeenCalledTimes(1) expect(result).toBe(repoLabels)