Skip to content

Commit

Permalink
Techdebt: adds state for testrun page (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofyakurilova committed May 8, 2024
1 parent 651f85d commit 00a97d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions modules/ui/src/app/pages/testrun/testrun.store.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ describe('TestrunStore', () => {
spyOn(store, 'dispatch').and.callFake(() => {});
});

afterEach(() => {
mockService.fetchSystemStatus.calls.reset();
});

it('should be created', () => {
expect(testrunStore).toBeTruthy();
});
Expand Down
4 changes: 1 addition & 3 deletions modules/ui/src/app/services/test-run.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { catchError, map, of, retry } from 'rxjs';
import { SystemConfig, SystemInterfaces } from '../model/setting';
import {
StatusOfTestResult,
StatusOfTestrun,
StatusResultClassName,
TestrunStatus,
} from '../model/testrun-status';
Expand Down Expand Up @@ -81,8 +80,7 @@ export class TestRunService {
private version = new BehaviorSubject<Version | null>(null);

constructor(
private http: HttpClient,
private store: Store<AppState>
private http: HttpClient
) {}

fetchDevices(): Observable<Device[]> {
Expand Down

0 comments on commit 00a97d7

Please sign in to comment.