(href, bool)
| 623 | |
| 624 | describes.sandboxed('isProtocolValid', {}, () => { |
| 625 | function testProtocolValid(href, bool) { |
| 626 | it( |
| 627 | 'should return that ' + |
| 628 | href + |
| 629 | (bool ? ' is' : ' is not') + |
| 630 | ' a valid protocol', |
| 631 | () => { |
| 632 | expect(isProtocolValid(href)).to.equal(bool); |
| 633 | } |
| 634 | ); |
| 635 | } |
| 636 | |
| 637 | testProtocolValid('http://foo.com', true); |
| 638 | testProtocolValid('https://foo.com', true); |
no test coverage detected