[OK-354] Unused Code removed.
diff --git a/src/app/pages/search/search.component.spec.ts b/src/app/pages/search/search.component.spec.ts
index daa19e3..adf3842 100644
--- a/src/app/pages/search/search.component.spec.ts
+++ b/src/app/pages/search/search.component.spec.ts
@@ -41,12 +41,14 @@
return commands[0];
}
}
+
@NgModule({
declarations: [EntryComponent],
entryComponents: [
EntryComponent
]
})
+
class TestModule { }
describe('SearchComponent', () => {
@@ -55,7 +57,6 @@
let fixture: ComponentFixture<SearchComponent>;
let router: Router;
let spy: jasmine.Spy;
- let mockNotificationService: MockNotificationService;
let mockNotificationSearchSortService: MockNotificationSearchSortService;
let mockSearchResultService: MockSearchResultService;
@@ -65,17 +66,7 @@
, name: 'Carlo Cottura', specialUser: true, itemName: this.userName
};
- class MockNotificationService extends AbstractMockObservableService {
- itemChanged$ = new EventEmitter();
- itemAdded$ = new EventEmitter();
- loadCalled = false;
-
- getNotificationVersions(incidentId: number) {
- return this;
- }
- }
-
- class MockNotificationSearchSortService extends AbstractMockObservableService {
+ class MockNotificationSearchSortService extends AbstractMockObservableService {
itemChanged$ = new EventEmitter();
itemAdded$ = new EventEmitter();
loadCalled = false;
@@ -106,7 +97,6 @@
}
beforeEach(async(() => {
- mockNotificationService = new MockNotificationService();
mockNotificationSearchSortService = new MockNotificationSearchSortService();
router = new FakeRouter() as any as Router;
@@ -131,7 +121,7 @@
MockComponent({ selector: 'app-entry' }),
MockComponent({ selector: 'app-sorting', inputs: ['columnName','initColumnName','isDesc', 'defaultState']}),
MockComponent({ selector: 'input', inputs: ['options'] }),
- MockComponent({ selector: 'app-search', inputs: [ 'withCheckboxes', 'withEditButtons', 'isCollapsible' ] }),
+ MockComponent({ selector: 'app-search'}),
MockComponent({ selector: 'app-autocomplete', inputs: ['responsibilityForwarding'], outputs: ['responsibilityForwarding'] }),
MockComponent({ selector: 'loading-spinner' }),
],
@@ -141,7 +131,7 @@
{ provide: Overlay, useClass: Overlay },
{ provide: OVERLAY_PROVIDERS, useClass: OVERLAY_PROVIDERS },
{ provide: DaterangepickerConfig, useClass: DaterangepickerConfig },
- { provide: NotificationService, useValue: mockNotificationService },
+ { provide: NotificationService, useClass: NotificationService },
{ provide: NotificationSearchSortService, useValue: mockNotificationSearchSortService },
{ provide: SearchResultService, useValue: mockNotificationSearchSortService },
{ provide: SessionContext, useClass: SessionContext },