| import { async } from '@angular/core/testing'; |
| import { CommunicationTypesResolver } from '@pages/admin/communication-types/communication-types.resolver'; |
| |
| describe('CommunicationTypesResolver', () => { |
| let component: CommunicationTypesResolver; |
| let sandbox: any; |
| |
| beforeEach(async(() => { |
| sandbox = { |
| clear() {}, |
| loadCommunicationTypes() {}, |
| } as any; |
| })); |
| |
| beforeEach(() => { |
| component = new CommunicationTypesResolver(sandbox); |
| }); |
| |
| it('should create', () => { |
| expect(component).toBeTruthy(); |
| }); |
| |
| it('should call loadCommunicationTypes', () => { |
| const spy = spyOn(sandbox, 'loadCommunicationTypes'); |
| component.resolve(); |
| expect(spy).toHaveBeenCalled(); |
| }); |
| |
| }); |