Skip to content

Commit

Permalink
chore: Rebased and rebuild to latest main
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Aug 26, 2024
1 parent 33750f5 commit 65c1f8a
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 151 deletions.
12 changes: 6 additions & 6 deletions __tests__/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const basePullRequest = {
base: {
ref: ''
},
head:{
head: {
ref: ''
}
}
Expand All @@ -17,14 +17,14 @@ const mockCompare = jest.fn()
mockCompare.mockReturnValue({
data: {
status: 'before',
'behind_by': 0
behind_by: 0
}
})

const mockGetPullRequest = jest.fn()
mockGetPullRequest.mockReturnValue({
data: {
mergeable: true,
mergeable: true
}
})
// Mock for the object `github` that is passed to the action
Expand Down Expand Up @@ -341,15 +341,15 @@ describe('Tests for `validatePullRequest` function', () => {
'The pull-request is associated with a dependency group but the action is not configured to handle dependency groups.'
)
})

test('should return `true` after compare commits', async () => {
mockCompare.mockReturnValueOnce({
data: {
status: 'behind',
'behind_by': 2
behind_by: 2
}
})

const pullRequest = {
...basePullRequest,
merged: false,
Expand Down
282 changes: 139 additions & 143 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 65c1f8a

Please sign in to comment.