Skip to content

Commit a8eb16d

Browse files
AmitMYyairtawil
authored andcommitted
test(menu): fix test for force redraw
1 parent a3d6f13 commit a8eb16d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/packages/menu/menu/menu.component.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ describe('MenuComponent', () => {
101101

102102
it('onIsPinnedChange should toggle "pinned" class on container element and should send ContainerChangedTriggerAction', () => {
103103
spyOn(store, 'dispatch');
104+
spyOn(menuComponent, 'forceRedraw').and.callFake(() => ({then: (c) => c()}));
104105

105106
menuComponent.isPinned = true;
106107
menuComponent.onIsPinnedChange();

0 commit comments

Comments
 (0)