Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StephGit committed Dec 11, 2024
1 parent bf1b984 commit f3c4ac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ describe('ResourceEditComponent', () => {
let componentRef: ComponentRef<ResourceEditPageComponent>;
let fixture: ComponentFixture<ResourceEditPageComponent>;

const mockRoute: any = { paramMap: of() };
mockRoute.paramMap = new Subject<any>();
mockRoute.paramMap.next({
const mockRoute: any = { queryParamMap: of() };
mockRoute.queryParamMap = new Subject<Map<string, number>>();
mockRoute.queryParamMap.next({
id: 42,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ResourceEditPageComponent {
);

isLoading = computed(() => {
if (this.ids().keys) {
if (this.ids()?.keys) {
// TODO show correct STAGE by context id
this.resourceService.getResource(Number(this.ids().get('id')));
return false;
Expand Down

0 comments on commit f3c4ac5

Please sign in to comment.