Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pam- committed Mar 2, 2021
1 parent 0476331 commit 3ce992c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions __tests__/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('Utils', () => {

expect(attachments[0].fields.find(a => a.title === 'Workflow')).toEqual({
title: 'Workflow',
value: `<https://github.com/voxmedia/github-action-slack-notify-build/actions/runs/12345 | CI>`,
value: `<https://github.com/voxmedia/github-action-slack-notify-build/actions/runs/${process.env.GITHUB_JOB} | CI>`,
short: true,
});
});
Expand All @@ -45,7 +45,7 @@ describe('Utils', () => {

expect(attachments[0].fields.find(a => a.title === 'Job')).toEqual({
title: 'Job',
value: `<https://github.com/voxmedia/github-action-slack-notify-build/actions/runs/12345 | build and push>`,
value: `<https://github.com/voxmedia/github-action-slack-notify-build/actions/runs/${process.env.GITHUB_JOB} | build and push>`,
short: true,
});
});
Expand Down Expand Up @@ -77,7 +77,7 @@ describe('Utils', () => {

expect(attachments[0].fields.find(a => a.title === 'Workflow')).toEqual({
title: 'Workflow',
value: `<https://github.com/voxmedia/github-action-slack-notify-build/actions/runs/12345 | CI>`,
value: `<https://github.com/voxmedia/github-action-slack-notify-build/actions/runs/${process.env.GITHUB_JOB} | CI>`,
short: true,
});
});
Expand Down
2 changes: 1 addition & 1 deletion fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export const GITHUB_PR_EVENT = {
eventName: 'pull_request',
sha: 'abc123',
job: 'build and push',
runId: 12345,
runId: process.env.GITHUB_JOB,
},
};

0 comments on commit 3ce992c

Please sign in to comment.