From a6eb063bcceda2856269831256cee474b0419010 Mon Sep 17 00:00:00 2001 From: "SU\\andrei.iarovoi" Date: Mon, 14 May 2018 12:05:49 +0300 Subject: [PATCH] #112: The option to add an address should be always visible: fixed unit tests --- .../wallets/address-detail/wallet-detail.component.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/pages/wallets/address-detail/wallet-detail.component.spec.ts b/src/app/components/pages/wallets/address-detail/wallet-detail.component.spec.ts index 67fbb285..55457412 100644 --- a/src/app/components/pages/wallets/address-detail/wallet-detail.component.spec.ts +++ b/src/app/components/pages/wallets/address-detail/wallet-detail.component.spec.ts @@ -1,5 +1,5 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { MatDialog } from '@angular/material'; +import { MatDialog, MatSnackBar } from '@angular/material'; import { WalletDetailComponent } from './wallet-detail.component'; import { WalletService } from '../../../../services/wallet.service'; @@ -16,7 +16,8 @@ describe('WalletDetailComponent', () => { declarations: [ WalletDetailComponent ], providers: [ { provide: WalletService, useClass: MockWalletService }, - { provide: MatDialog, useValue: {} } + { provide: MatDialog, useValue: {} }, + { provide: MatSnackBar, useValue: {} } ] }).compileComponents(); }));