[59329aa] | 1 | import { ɵɵdefineInjectable, Injectable, NgModule } from '@angular/core';
|
---|
| 2 | import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
---|
| 3 |
|
---|
| 4 | const dummyIcon = {
|
---|
| 5 | prefix: 'fad',
|
---|
| 6 | iconName: 'dummy',
|
---|
| 7 | icon: [512, 512, [], 'f030', 'M50 50 H462 V462 H50 Z'],
|
---|
| 8 | };
|
---|
| 9 | class MockFaIconLibrary {
|
---|
| 10 | addIcons() {
|
---|
| 11 | throw new Error('Attempt to add an icon to the MockFaIconLibrary.');
|
---|
| 12 | }
|
---|
| 13 | addIconPacks() {
|
---|
| 14 | throw new Error('Attempt to add an icon pack to the MockFaIconLibrary.');
|
---|
| 15 | }
|
---|
| 16 | getIconDefinition(prefix, name) {
|
---|
| 17 | return dummyIcon;
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
| 20 | MockFaIconLibrary.ɵprov = ɵɵdefineInjectable({ factory: function MockFaIconLibrary_Factory() { return new MockFaIconLibrary(); }, token: MockFaIconLibrary, providedIn: "root" });
|
---|
| 21 | MockFaIconLibrary.decorators = [
|
---|
| 22 | { type: Injectable, args: [{
|
---|
| 23 | providedIn: 'root',
|
---|
| 24 | },] }
|
---|
| 25 | ];
|
---|
| 26 |
|
---|
| 27 | class FontAwesomeTestingModule {
|
---|
| 28 | }
|
---|
| 29 | FontAwesomeTestingModule.decorators = [
|
---|
| 30 | { type: NgModule, args: [{
|
---|
| 31 | exports: [FontAwesomeModule],
|
---|
| 32 | providers: [{ provide: FaIconLibrary, useExisting: MockFaIconLibrary }],
|
---|
| 33 | },] }
|
---|
| 34 | ];
|
---|
| 35 |
|
---|
| 36 | /**
|
---|
| 37 | * Generated bundle index. Do not edit.
|
---|
| 38 | */
|
---|
| 39 |
|
---|
| 40 | export { FontAwesomeTestingModule, MockFaIconLibrary as ɵa };
|
---|
| 41 | //# sourceMappingURL=fortawesome-angular-fontawesome-testing.js.map
|
---|