1 | import * as i0 from '@angular/core';
|
2 | import { Injectable, NgModule } from '@angular/core';
|
3 | import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
4 |
|
5 | const dummyIcon = {
|
6 | prefix: 'fad',
|
7 | iconName: 'dummy',
|
8 | icon: [512, 512, [], 'f030', 'M50 50 H462 V462 H50 Z'],
|
9 | };
|
10 | class MockFaIconLibrary {
|
11 | addIcons() {
|
12 | throw new Error('Attempt to add an icon to the MockFaIconLibrary.');
|
13 | }
|
14 | addIconPacks() {
|
15 | throw new Error('Attempt to add an icon pack to the MockFaIconLibrary.');
|
16 | }
|
17 | getIconDefinition(prefix, name) {
|
18 | return dummyIcon;
|
19 | }
|
20 | }
|
21 | MockFaIconLibrary.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MockFaIconLibrary, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
22 | MockFaIconLibrary.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MockFaIconLibrary, providedIn: 'root' });
|
23 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MockFaIconLibrary, decorators: [{
|
24 | type: Injectable,
|
25 | args: [{
|
26 | providedIn: 'root',
|
27 | }]
|
28 | }] });
|
29 |
|
30 | class FontAwesomeTestingModule {
|
31 | }
|
32 | FontAwesomeTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: FontAwesomeTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
33 | FontAwesomeTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: FontAwesomeTestingModule, exports: [FontAwesomeModule] });
|
34 | FontAwesomeTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: FontAwesomeTestingModule, providers: [{ provide: FaIconLibrary, useExisting: MockFaIconLibrary }], imports: [FontAwesomeModule] });
|
35 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: FontAwesomeTestingModule, decorators: [{
|
36 | type: NgModule,
|
37 | args: [{
|
38 | exports: [FontAwesomeModule],
|
39 | providers: [{ provide: FaIconLibrary, useExisting: MockFaIconLibrary }],
|
40 | }]
|
41 | }] });
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | export { FontAwesomeTestingModule };
|
48 |
|