Commit c0925e88 authored by peterhegman's avatar peterhegman

Add expectation to insure ipaddr.parseCIDR is called

parent 1a75e1e5
......@@ -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);
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment