Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c0925e88
Commit
c0925e88
authored
Aug 17, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add expectation to insure ipaddr.parseCIDR is called
parent
1a75e1e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ee/spec/frontend/validators/ip_address_spec.js
ee/spec/frontend/validators/ip_address_spec.js
+4
-1
No files found.
ee/spec/frontend/validators/ip_address_spec.js
View file @
c0925e88
...
...
@@ -22,7 +22,10 @@ describe('validateIpAddress', () => {
24
,
]);
expect
(
validateIpAddress
(
'
192.168.0.0/24
'
)).
toBe
(
true
);
const
result
=
validateIpAddress
(
'
192.168.0.0/24
'
);
expect
(
ipaddr
.
parseCIDR
).
toHaveBeenCalledWith
(
'
192.168.0.0/24
'
);
expect
(
result
).
toBe
(
true
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment