diff --git a/src/app/components/inspection-header.component.spec.ts b/src/app/components/inspection-header.component.spec.ts index c738f86f5..7b666c4e8 100644 --- a/src/app/components/inspection-header.component.spec.ts +++ b/src/app/components/inspection-header.component.spec.ts @@ -38,8 +38,8 @@ describe('InspectionHeaderComponent', () => { expect(component.id).toEqual(id); }); - it('should not change "id" if a undefined value is provided', () => { - component.id = undefined; + it('should not change "id" if a null value is provided', () => { + component.id = null; expect(component.id).toEqual(id); }); }); diff --git a/src/app/components/show-page.component.spec.ts b/src/app/components/show-page.component.spec.ts index fe6224b7b..335dad5b3 100644 --- a/src/app/components/show-page.component.spec.ts +++ b/src/app/components/show-page.component.spec.ts @@ -1,20 +1,14 @@ import { TestBed } from '@angular/core/testing'; import { DataRaw } from '@app/types/data'; -import { NotificationService } from '@services/notification.service'; import { ShowPageComponent } from './show-page.component'; describe('ShowPageComponent', () => { let component: ShowPageComponent; - - const mockNotificationService = { - success: jest.fn() - }; beforeEach(() => { component = TestBed.configureTestingModule({ providers: [ ShowPageComponent, - {provide: NotificationService, useValue: mockNotificationService} ] }).inject(ShowPageComponent); }); @@ -23,11 +17,6 @@ describe('ShowPageComponent', () => { expect(component).toBeTruthy(); }); - it('should call a notification success on copy', () => { - component.onCopiedTaskId(); - expect(mockNotificationService.success).toHaveBeenCalledWith('Task ID copied to clipboard'); - }); - it('should emit on refresh', () => { const refreshSpy = jest.spyOn(component.refresh, 'emit'); component.onRefresh();