(href, bool)
| 602 | |
| 603 | describes.sandboxed('isLocalhostOrigin', {}, () => { |
| 604 | function testLocalhostOrigin(href, bool) { |
| 605 | it( |
| 606 | 'should return that ' + |
| 607 | href + |
| 608 | (bool ? ' is' : ' is not') + |
| 609 | ' a localhost origin', |
| 610 | () => { |
| 611 | expect(isLocalhostOrigin(parseUrlDeprecated(href))).to.equal(bool); |
| 612 | } |
| 613 | ); |
| 614 | } |
| 615 | |
| 616 | testLocalhostOrigin('http://localhost', true); |
| 617 | testLocalhostOrigin('https://localhost', true); |
no test coverage detected