Include datasource of jobs and producers into component
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / ei-coordinator / ei-coordinator.component.spec.ts
index 7c50ca0..cdc1b84 100644 (file)
@@ -100,12 +100,12 @@ describe('EICoordinatorComponent', () => {
 
     it('should refresh tables', async () => {
       let refreshButton = await loader.getHarness(MatButtonHarness.with({ selector: '#refreshButton' }));
-      spyOn(component.producersList, 'refresh');
-      spyOn(component.jobComponent, 'refresh');
+      spyOn(component.producersList, 'loadProducers');
+      spyOn(component.jobComponent, 'loadJobs');
       await refreshButton.click();
 
-      expect(component.jobComponent.refresh).toHaveBeenCalled();
-      expect(component.producersList.refresh).toHaveBeenCalled();
+      expect(component.jobComponent.loadJobs).toHaveBeenCalled();
+      expect(component.producersList.loadProducers).toHaveBeenCalled();
     });
   });
 
@@ -120,7 +120,7 @@ describe('EICoordinatorComponent', () => {
     ]
   })
   class JobsListStubComponent {
-    refresh() { }
+    loadJobs() { }
   }
 
   @Component({
@@ -134,7 +134,7 @@ describe('EICoordinatorComponent', () => {
     ]
   })
   class ProducerListStubComponent {
-    refresh() { }
+    loadProducers() { }
   }
 
 });