start refactor
This commit is contained in:
@@ -8,14 +8,14 @@ describe('contains', function () {
|
||||
expect(contains).to.be.a('function');
|
||||
});
|
||||
|
||||
it('should match url against blacklist and return true', function () {
|
||||
it('should match url against denyList and return true', function () {
|
||||
const list = 'localhost\ntest.com';
|
||||
|
||||
const url = 'http://localhost/fooapp';
|
||||
expect(contains(url, list)).to.equal(true);
|
||||
});
|
||||
|
||||
it('should not match url against blacklist and return false', function () {
|
||||
it('should not match url against denyList and return false', function () {
|
||||
const list = 'localhost2\ntest.com';
|
||||
|
||||
const url = 'http://localhost/fooapp';
|
||||
|
||||
Reference in New Issue
Block a user