Skip to content

Commit

Permalink
feature(policy): #832 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mmaul committed Jun 12, 2024
1 parent 2e73975 commit 733262a
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Router } from '@angular/router';
import { ActivatedRoute, Router } from '@angular/router';
import { AdminModule } from '@page/admin/admin.module';
import { PoliciesFacade } from '@page/admin/presentation/policy-management/policies/policies.facade';
import { Policy } from '@page/policies/model/policy.model';
Expand All @@ -25,6 +25,18 @@ describe('PolicyEditorComponent', () => {
url: 'https://test.net/admin/policies/edit/default',
},
},
{
provide: ActivatedRoute,
useValue: {
params: of({ id: 'default' }),
queryParams: of({}),
snapshot: {
paramMap: {
get: (key: string) => 'default',
},
},
},
},
],
});
}
Expand Down

0 comments on commit 733262a

Please sign in to comment.