(href, sourceHref)
| 651 | |
| 652 | describes.sandboxed('getSourceOrigin/Url', {}, () => { |
| 653 | function testOrigin(href, sourceHref) { |
| 654 | it('should return the source origin/url from ' + href, () => { |
| 655 | expect(getSourceUrl(href)).to.equal(sourceHref); |
| 656 | expect(getSourceOrigin(href)).to.equal( |
| 657 | parseUrlDeprecated(sourceHref).origin |
| 658 | ); |
| 659 | }); |
| 660 | } |
| 661 | |
| 662 | // CDN. |
| 663 | testOrigin( |
no test coverage detected