Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should support relative', function(){
assert(true === url.isRelative('foo'));
assert(true === url.isRelative('foo/bar/baz'));
assert(true === url.isRelative('/foo/bar/baz'));
assert(true === url.isRelative('foo.com/something'));
})
})
it('should support relative', function(){
assert(true === url.isRelative('foo'));
assert(true === url.isRelative('foo/bar/baz'));
assert(true === url.isRelative('/foo/bar/baz'));
assert(true === url.isRelative('foo.com/something'));
})
})
it('should support //', function(){
assert(false === url.isRelative('//foo.com'));
})
it('should support scheme://', function(){
assert(false === url.isRelative('http://foo.com'));
})
it('should support relative', function(){
assert(true === url.isRelative('foo'));
assert(true === url.isRelative('foo/bar/baz'));
assert(true === url.isRelative('/foo/bar/baz'));
assert(true === url.isRelative('foo.com/something'));
})
})
it('should support relative', function(){
assert(true === url.isRelative('foo'));
assert(true === url.isRelative('foo/bar/baz'));
assert(true === url.isRelative('/foo/bar/baz'));
assert(true === url.isRelative('foo.com/something'));
})
})