mirror of
https://github.com/d0zingcat/cors-anywhere.git
synced 2026-05-13 15:09:25 +00:00
Fix failing test in test/test-ratelimit
This commit is contained in:
@@ -218,11 +218,11 @@ describe('Rate limit', function() {
|
||||
it('bad input', function() {
|
||||
assert.throws(function() {
|
||||
createRateLimitChecker('0 1 /');
|
||||
}, 'Invalid CORSANYWHERE_RATELIMIT. Regex at index 0 must start and end with a slash ("/").');
|
||||
}, /Invalid CORSANYWHERE_RATELIMIT\. Regex at index 0 must start and end with a slash \("\/"\)\./);
|
||||
|
||||
assert.throws(function() {
|
||||
createRateLimitChecker('0 1 a,/');
|
||||
}, 'Invalid CORSANYWHERE_RATELIMIT. Regex at index 1 must start and end with a slash ("/").');
|
||||
createRateLimitChecker('0 1 a /');
|
||||
}, /Invalid CORSANYWHERE_RATELIMIT\. Regex at index 1 must start and end with a slash \("\/"\)\./);
|
||||
|
||||
assert.throws(function() {
|
||||
createRateLimitChecker('0 1 /(/');
|
||||
|
||||
Reference in New Issue
Block a user