@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
56 lines (51 loc) • 1.3 kB
JavaScript
import { __decorate } from 'tslib';
import { Injectable } from '@angular/core';
import { noop } from '@terminus/ngx-tools/utilities';
const ɵ0 = () => ({ selectNodeContents: noop });
const document = {
body: {
createTextRange: noop,
appendChild: noop,
},
createElement: noop,
createRange: ɵ0,
execCommand: noop,
};
let TsDocumentServiceMock = class TsDocumentServiceMock {
constructor() {
this.document = document;
}
};
TsDocumentServiceMock = __decorate([
Injectable()
], TsDocumentServiceMock);
const ɵ0$1 = () => ({ getPropertyValue: () => 'static' }), ɵ1 = () => ({
removeAllRanges: noop,
addRange: noop,
}), ɵ2 = (x, y) => {
};
const windowMock = {
getComputedStyle: ɵ0$1,
open: noop,
location: {
href: 'foo/bar',
protocol: 'https:',
},
alert: noop,
getSelection: ɵ1,
scrollTo: ɵ2,
prompt: noop,
};
let TsWindowServiceMock = class TsWindowServiceMock {
get nativeWindow() {
return windowMock;
}
};
TsWindowServiceMock = __decorate([
Injectable()
], TsWindowServiceMock);
/**
* Generated bundle index. Do not edit.
*/
export { TsDocumentServiceMock, TsWindowServiceMock, ɵ0, ɵ1, ɵ2 };
//# sourceMappingURL=terminus-ngx-tools-browser-testing.js.map