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 7a7ca58 commit d906713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/utils.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { formatChannelName, buildSlackAttachments } from '../src/utils';
import { GITHUB_PUSH_EVENT, GITHUB_PR_EVENT } from '../fixtures';
const runId = parseInt(process.env.GITHUB_RUN_ID, 10);
const job = process.env.GITHUB_JOB;

describe('Utils', () => {
describe('formatChannelName', () => {
Expand Down Expand Up @@ -46,7 +47,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/${runId} | build and push>`,
value: `<https://github.com/voxmedia/github-action-slack-notify-build/actions/runs/${runId} | ${job}>`,
short: true,
});
});
Expand Down

0 comments on commit d906713

Please sign in to comment.