mirror of
https://github.com/tenrok/axios.git
synced 2026-05-24 14:04:14 +03:00
c7488c7dd5
* Remove unnecessary XSS check introduced by #2451 * Remove test file of `isValidXss`
12 lines
384 B
JavaScript
12 lines
384 B
JavaScript
var isURLSameOrigin = require('../../../lib/helpers/isURLSameOrigin');
|
|
|
|
describe('helpers::isURLSameOrigin', function () {
|
|
it('should detect same origin', function () {
|
|
expect(isURLSameOrigin(window.location.href)).toEqual(true);
|
|
});
|
|
|
|
it('should detect different origin', function () {
|
|
expect(isURLSameOrigin('https://github.com/axios/axios')).toEqual(false);
|
|
});
|
|
});
|