49 lines
2.3 KiB
JavaScript
49 lines
2.3 KiB
JavaScript
|
import * as i0 from '@angular/core';
|
||
|
import { Injectable, NgModule } from '@angular/core';
|
||
|
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
||
|
|
||
|
const dummyIcon = {
|
||
|
prefix: 'fad',
|
||
|
iconName: 'dummy',
|
||
|
icon: [512, 512, [], 'f030', 'M50 50 H462 V462 H50 Z'],
|
||
|
};
|
||
|
class MockFaIconLibrary {
|
||
|
addIcons() {
|
||
|
throw new Error('Attempt to add an icon to the MockFaIconLibrary.');
|
||
|
}
|
||
|
addIconPacks() {
|
||
|
throw new Error('Attempt to add an icon pack to the MockFaIconLibrary.');
|
||
|
}
|
||
|
getIconDefinition(prefix, name) {
|
||
|
return dummyIcon;
|
||
|
}
|
||
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: MockFaIconLibrary, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
||
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: MockFaIconLibrary, providedIn: 'root' }); }
|
||
|
}
|
||
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: MockFaIconLibrary, decorators: [{
|
||
|
type: Injectable,
|
||
|
args: [{
|
||
|
providedIn: 'root',
|
||
|
}]
|
||
|
}] });
|
||
|
|
||
|
class FontAwesomeTestingModule {
|
||
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: FontAwesomeTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
||
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0", ngImport: i0, type: FontAwesomeTestingModule, exports: [FontAwesomeModule] }); }
|
||
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: FontAwesomeTestingModule, providers: [{ provide: FaIconLibrary, useExisting: MockFaIconLibrary }], imports: [FontAwesomeModule] }); }
|
||
|
}
|
||
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0", ngImport: i0, type: FontAwesomeTestingModule, decorators: [{
|
||
|
type: NgModule,
|
||
|
args: [{
|
||
|
exports: [FontAwesomeModule],
|
||
|
providers: [{ provide: FaIconLibrary, useExisting: MockFaIconLibrary }],
|
||
|
}]
|
||
|
}] });
|
||
|
|
||
|
/**
|
||
|
* Generated bundle index. Do not edit.
|
||
|
*/
|
||
|
|
||
|
export { FontAwesomeTestingModule };
|
||
|
//# sourceMappingURL=fortawesome-angular-fontawesome-testing.mjs.map
|