diff options
Diffstat (limited to 'spec/frontend/projects/settings/branch_rules/components/view/protection_spec.js')
-rw-r--r-- | spec/frontend/projects/settings/branch_rules/components/view/protection_spec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/frontend/projects/settings/branch_rules/components/view/protection_spec.js b/spec/frontend/projects/settings/branch_rules/components/view/protection_spec.js index e2fbb4f5bbb..caf967b4257 100644 --- a/spec/frontend/projects/settings/branch_rules/components/view/protection_spec.js +++ b/spec/frontend/projects/settings/branch_rules/components/view/protection_spec.js @@ -65,4 +65,15 @@ describe('Branch rule protection', () => { approvalsRequired: approval.approvalsRequired, }); }); + + it('renders a protection row for status checks', () => { + const statusCheck = protectionPropsMock.statusChecks[0]; + expect(findProtectionRows().at(4).props()).toMatchObject({ + title: statusCheck.name, + showDivider: false, + statusCheckUrl: statusCheck.externalUrl, + }); + + expect(findProtectionRows().at(5).props('showDivider')).toBe(true); + }); }); |