window-mock
Version:
A light-weight window mock for Node/io.js unit-testing
19 lines (14 loc) • 485 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var WindowLocationMock = function WindowLocationMock() {
_classCallCheck(this, WindowLocationMock);
this._test = 'Location';
this.hash = '';
this.href = '';
this.pathname = '';
this.origin = '';
};
exports.default = WindowLocationMock;