Skip to content

Commit 3b53a93

Browse files
author
raboid
committed
fixes
1 parent 455a8de commit 3b53a93

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

test/fixtures/synchronized.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = ({ author_association = 'COLLABORATOR' }) => ({
1+
module.exports = ({ author_association = 'COLLABORATOR' } = {}) => ({
22
name: 'pull_request',
33
payload: {
44
action: 'synchronize',

test/index.test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,14 @@ comments:
129129
labels:
130130
- duplicate
131131
132-
<<<<<<< HEAD
133132
merges:
134133
- action: delete_branch
135-
=======
134+
136135
commits:
137136
- action: label
138137
pattern: merge when passing
139138
labels:
140139
- merge when passing
141-
>>>>>>> use synchronize, add unit tests, add to default config
142140
143141
default:
144142
close:
@@ -493,7 +491,7 @@ describe('Bot', () => {
493491
})
494492

495493
test('Will take action on a maintainer commit message', async () => {
496-
await robot.receive(synchronizedPayload({}))
494+
await robot.receive(synchronizedPayload())
497495

498496
expect(github.issues.addLabels).toHaveBeenCalledWith({
499497
number: 4,

0 commit comments

Comments
 (0)