implemented test suite
This commit is contained in:
1 parent
ff12bb40ad
commit
458a1f360e
29 files changed
+1233
-382
No files matched your search
@@ -6,9 +6,9 @@ import { Router } from '@angular/router';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class TestProgressService {
|
||||
private totalTests = 7;
|
||||
private totalTests = 4;
|
||||
private currentTestSubject = new BehaviorSubject<number>(1);
|
||||
private progressSubject = new BehaviorSubject<number>(14.3); // (1/7) * 100
|
||||
private progressSubject = new BehaviorSubject<number>(25); // (1/totalTests) * 100
|
||||
|
||||
currentTest$ = this.currentTestSubject.asObservable();
|
||||
progress$ = this.progressSubject.asObservable();
|
||||
@@ -30,7 +30,6 @@ export class TestProgressService {
|
||||
this.currentTestSubject.next(nextTest);
|
||||
this.updateProgress(nextTest);
|
||||
} else {
|
||||
// All tests completed, navigate to completion screen
|
||||
this.router.navigate(['/completion']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user