Code Review
/
portal
/
nonrtric-controlpanel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Include datasource of jobs and producers into component
[portal/nonrtric-controlpanel.git]
/
webapp-frontend
/
src
/
app
/
ei-coordinator
/
ei-coordinator.component.spec.ts
diff --git
a/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.spec.ts
b/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.spec.ts
index
7c50ca0
..
cdc1b84
100644
(file)
--- a/
webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.spec.ts
+++ b/
webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.spec.ts
@@
-100,12
+100,12
@@
describe('EICoordinatorComponent', () => {
it('should refresh tables', async () => {
let refreshButton = await loader.getHarness(MatButtonHarness.with({ selector: '#refreshButton' }));
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();
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 {
]
})
class JobsListStubComponent {
-
refresh
() { }
+
loadJobs
() { }
}
@Component({
}
@Component({
@@
-134,7
+134,7
@@
describe('EICoordinatorComponent', () => {
]
})
class ProducerListStubComponent {
]
})
class ProducerListStubComponent {
-
refresh
() { }
+
loadProducers
() { }
}
});
}
});