| import { ContactsListComponent } from './contacts-list.component'; |
| import { ToastrService } from 'ngx-toastr'; |
| |
| class MockToastrService { |
| success(message?: string, title?: string, override?: any) { } |
| } |
| |
| describe('ContactsListComponent', () => { |
| |
| |
| let component: ContactsListComponent; |
| const sandbox: any = {}; |
| let toastr: MockToastrService; |
| |
| beforeEach(() => { |
| toastr = new MockToastrService(); |
| component = new ContactsListComponent(sandbox, toastr as any); |
| }); |
| |
| it('should create', () => { |
| expect(component).toBeTruthy(); |
| }); |
| }); |