1 | {"version":3,"file":"fortawesome-angular-fontawesome-testing.umd.js","sources":["../../../testing/src/icon/mock-icon-library.service.ts","../../../testing/src/testing.module.ts","../../../testing/src/fortawesome-angular-fontawesome-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { FaIconLibraryInterface } from '@fortawesome/angular-fontawesome';\nimport { IconDefinition, IconName, IconPrefix } from '@fortawesome/fontawesome-svg-core';\n\nexport const dummyIcon: IconDefinition = {\n prefix: 'fad',\n iconName: 'dummy' as IconName,\n icon: [512, 512, [], 'f030', 'M50 50 H462 V462 H50 Z'],\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class MockFaIconLibrary implements FaIconLibraryInterface {\n addIcons() {\n throw new Error('Attempt to add an icon to the MockFaIconLibrary.');\n }\n\n addIconPacks() {\n throw new Error('Attempt to add an icon pack to the MockFaIconLibrary.');\n }\n\n getIconDefinition(prefix: IconPrefix, name: IconName): IconDefinition {\n return dummyIcon;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { MockFaIconLibrary } from './icon/mock-icon-library.service';\n\n@NgModule({\n exports: [FontAwesomeModule],\n providers: [{ provide: FaIconLibrary, useExisting: MockFaIconLibrary }],\n})\nexport class FontAwesomeTestingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {MockFaIconLibrary as ɵa} from './icon/mock-icon-library.service';"],"names":["Injectable","NgModule","FontAwesomeModule","FaIconLibrary"],"mappings":";;;;;;IAIO,IAAM,SAAS,GAAmB;QACvC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,OAAmB;QAC7B,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,wBAAwB,CAAC;KACvD,CAAC;;QAKF;;QACE,oCAAQ,GAAR;YACE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;SACrE;QAED,wCAAY,GAAZ;YACE,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;SAC1E;QAED,6CAAiB,GAAjB,UAAkB,MAAkB,EAAE,IAAc;YAClD,OAAO,SAAS,CAAC;SAClB;;;;;gBAdFA,aAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;;QCJD;;;;;gBAJCC,WAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,oCAAiB,CAAC;oBAC5B,SAAS,EAAE,CAAC,EAAE,OAAO,EAAEC,gCAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;iBACxE;;;ICPD;;;;;;;;;;;;;"} |
---|