Skip to content

Commit 891fc6c

Browse files
committed
Update tests and fixtures
1 parent aad53f1 commit 891fc6c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

tests/__snapshots__/index.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Array [
2323
"assignees": Array [
2424
"JasonEtco",
2525
],
26-
"body": "The repo waddup is the best repo.",
26+
"body": "The action create-an-issue is the best action.",
2727
"labels": Array [
2828
"bugs",
2929
],
@@ -41,12 +41,12 @@ Array [
4141
Array [
4242
Object {
4343
"assignees": Array [],
44-
"body": "The repo waddup is the best repo.",
44+
"body": "The action create-an-issue is the best action.",
4545
"labels": Array [],
4646
"milestone": undefined,
4747
"owner": "JasonEtco",
4848
"repo": "waddup",
49-
"title": "Hello JasonEtco",
49+
"title": "Hello create-an-issue",
5050
},
5151
],
5252
]

tests/fixtures/.github/kitchen-sink.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ labels:
66
- bugs
77
milestone: 2
88
---
9-
The repo {{ payload.repository.name }} is the best repo.
9+
The action {{ action }} is the best action.

tests/fixtures/.github/variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
title: Hello {{ payload.repository.owner.login }}
2+
title: Hello {{ action }}
33
---
4-
The repo {{ payload.repository.name }} is the best repo.
4+
The action {{ action }} is the best action.

tests/index.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ describe('create-an-issue', () => {
1515
github = { issues: { create: jest.fn() } }
1616

1717
tools.workspace = path.join(__dirname, 'fixtures')
18-
tools.context.payload = { repository: { owner: { login: 'JasonEtco' }, name: 'waddup' } }
1918
tools.github = github
2019

2120
issueCreator = new IssueCreator(tools)

0 commit comments

Comments
 (0)