MCPcopy
hub / github.com/bitpay/wallet / configureProviderTestingModule

Method configureProviderTestingModule

src/test.ts:281–310  ·  view source on GitHub ↗
(
    providerOverrides: Array<{
      provide;
      useClass?;
      useValue?;
      useFactory?: (...args) => any;
    }> = []
  )

Source from the content-addressed store, hash-verified

279 }
280
281 public static configureProviderTestingModule(
282 providerOverrides: Array<{
283 provide;
284 useClass?;
285 useValue?;
286 useFactory?: (...args) => any;
287 }> = []
288 ) {
289 TestBed.configureTestingModule({
290 imports: [...baseImports, ProvidersModule],
291 providers: [...baseProviders, ...providerOverrides],
292 declarations: [
293 EncryptPasswordComponent,
294 InfoSheetComponent,
295 ActionSheetComponent
296 ],
297 schemas: [NO_ERRORS_SCHEMA]
298 })
299 .overrideModule(BrowserDynamicTestingModule, {
300 set: {
301 entryComponents: [
302 EncryptPasswordComponent,
303 ActionSheetComponent,
304 InfoSheetComponent
305 ]
306 }
307 })
308 .compileComponents();
309 return TestBed;
310 }
311
312 // http://stackoverflow.com/questions/2705583/how-to-simulate-a-click-with-javascript
313 public static eventFire(el, etype: string): void {

Callers 15

touchid.spec.tsFile · 0.80
logger.spec.tsFile · 0.80
wallet.spec.tsFile · 0.80
paypro.spec.tsFile · 0.80
language.spec.tsFile · 0.80
fee.spec.tsFile · 0.80
profile.spec.tsFile · 0.80
feedback.spec.tsFile · 0.80
bwc-error.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by 2

initFunction · 0.64
initFunction · 0.64