window-mock
Version:
A light-weight window mock for Node/io.js unit-testing
16 lines (11 loc) • 435 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 WindowNavigatorMock = function WindowNavigatorMock() {
_classCallCheck(this, WindowNavigatorMock);
this._test = 'Navigator';
this.userAgent = '';
};
exports.default = WindowNavigatorMock;