Skip to content

Commit

Permalink
test: fix jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
SGrueber committed Mar 5, 2024
1 parent 7a31089 commit 243a5c6
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ describe('Cms Navigation Page Component', () => {
},
},
};
const contentPageTreeView = createCompleteContentPageTreeView(pageTree, 'ebene_1', 8);

beforeEach(async () => {
cmsFacade = mock(cmsFacade);
cmsFacade = mock(CMSFacade);
when(cmsFacade.completeContentPageTree$(anything(), anything())).thenReturn(of(contentPageTreeView));

await TestBed.configureTestingModule({
imports: [RouterTestingModule],
Expand All @@ -109,10 +111,6 @@ describe('Cms Navigation Page Component', () => {
fixture = TestBed.createComponent(CMSNavigationPageComponent);
component = fixture.componentInstance;
element = fixture.nativeElement;

when(cmsFacade.completeContentPageTree$(anything(), anything())).thenReturn(
of(createCompleteContentPageTreeView(pageTree, 'ebene_1', 8))
);
});

it('should be created', () => {
Expand Down

0 comments on commit 243a5c6

Please sign in to comment.