mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-22 18:28:00 +00:00
Updated tests for mocked regex
This commit is contained in:
parent
93f74c9d91
commit
0242eb69ee
1 changed files with 2 additions and 2 deletions
|
|
@ -100,9 +100,9 @@ describe('NetworkAccessFormUtils', () => {
|
|||
const validation = NetworkAccessFormUtils.getNetworkAccessFormValidation();
|
||||
const validator = validation['network-access-admin'];
|
||||
|
||||
expect(validator('192.168.1.256/24')).toBe('Invalid CIDR range');
|
||||
expect(validator('192.168.1.256.1/24')).toBe('Invalid CIDR range');
|
||||
expect(validator('invalid')).toBe('Invalid CIDR range');
|
||||
expect(validator('192.168.1.0/33')).toBe('Invalid CIDR range');
|
||||
expect(validator('192.168.1.0/256')).toBe('Invalid CIDR range');
|
||||
});
|
||||
|
||||
it('should return error when any CIDR in comma-separated list is invalid', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue