Fix event action check

This commit is contained in:
Nick Alteen
2025-09-16 13:00:00 -04:00
parent f44c11ebd1
commit 6b35c8253b
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ describe('main.ts', () => {
beforeEach(() => {
// "Reset" the github context.
github.context.eventName = 'pull_request'
github.context.action = 'opened'
github.context.payload.action = 'opened'
github.context.payload.issue = undefined as any
github.context.payload.pull_request = {
number: 10
@@ -57,7 +57,7 @@ describe('main.ts', () => {
})
it('Skips invalid actions', async () => {
github.context.action = 'edited'
github.context.payload.action = 'edited'
await main.run()