Skip to content

Commit 2ad9009

Browse files
committed
fix broken branch test
1 parent 49d14c9 commit 2ad9009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/lib/plugins/branches.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('Branches', () => {
2828
enforce_admins: { enabled: false }
2929
}
3030
}),
31-
updateBranchProtection: jest.fn().mockImplementation(() => Promise.resolve('updateBranchProtection')),
31+
updateBranchProtection: jest.fn().mockImplementation(() => Promise.resolve({ url: 'updateBranchProtection' })),
3232
deleteBranchProtection: jest.fn().mockImplementation(() => Promise.resolve('deleteBranchProtection'))
3333
}
3434
}
@@ -204,7 +204,7 @@ describe('Branches', () => {
204204
})
205205
})
206206

207-
describe.skip('return values', () => {
207+
describe('return values', () => {
208208
it('returns updateBranchProtection Promise', () => {
209209
const plugin = configure(
210210
[{

0 commit comments

Comments
 (0)