@terminus/ngx-tools
Version:
[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github
64 lines (59 loc) • 1.68 kB
JavaScript
import { __decorate } from 'tslib';
import { Injectable } from '@angular/core';
import { noop } from '@terminus/ngx-tools/utilities';
var ɵ0 = function () { return ({ selectNodeContents: noop }); };
var document = {
body: {
createTextRange: noop,
appendChild: noop,
},
createElement: noop,
createRange: ɵ0,
execCommand: noop,
};
var TsDocumentServiceMock = /** @class */ (function () {
function TsDocumentServiceMock() {
this.document = document;
}
TsDocumentServiceMock = __decorate([
Injectable()
], TsDocumentServiceMock);
return TsDocumentServiceMock;
}());
var ɵ0$1 = function () { return ({ getPropertyValue: function () { return 'static'; } }); }, ɵ1 = function () { return ({
removeAllRanges: noop,
addRange: noop,
}); }, ɵ2 = function (x, y) {
};
var windowMock = {
getComputedStyle: ɵ0$1,
open: noop,
location: {
href: 'foo/bar',
protocol: 'https:',
},
alert: noop,
getSelection: ɵ1,
scrollTo: ɵ2,
prompt: noop,
};
var TsWindowServiceMock = /** @class */ (function () {
function TsWindowServiceMock() {
}
Object.defineProperty(TsWindowServiceMock.prototype, "nativeWindow", {
get: function () {
return windowMock;
},
enumerable: true,
configurable: true
});
TsWindowServiceMock = __decorate([
Injectable()
], TsWindowServiceMock);
return TsWindowServiceMock;
}());
/**
* Generated bundle index. Do not edit.
*/
export { TsDocumentServiceMock, TsWindowServiceMock, ɵ0, ɵ1, ɵ2 };
//# sourceMappingURL=terminus-ngx-tools-browser-testing.js.map