Skip to content

Commit

Permalink
[ACS-8001] fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-web-ua committed Aug 7, 2024
1 parent b54e3a0 commit d6053cf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,9 @@ describe('ContentMetadataComponent', () => {
});

it('should call onPredictionStatusChanged when prediction status has changed', () => {
const onPredictionStatusChangedSpy = spyOn(updateService, 'onPredictionStatusChanged');
const updatedNode = { ...node, name: 'new test name' };
const onPredictionStatusChangedSpy = spyOn(updateService, 'onPredictionStatusChanged').and.stub();
spyOn(nodesApiService, 'getNode').and.returnValue(of(updatedNode));
const notification = { key: 'test:test', previousValue: 'previous value' };
component.ngOnInit();
predictionService.predictionStatusUpdated$.next(notification);
Expand Down

0 comments on commit d6053cf

Please sign in to comment.