Skip to content

Commit 1acbea7

Browse files
committed
fix(design/menu): use jasmine.anything() for second arg in open spy assertion
Assert only the third argument (menu id); second arg can be TemplateRef before component.daffMenuActivator is set in test context.
1 parent c4fc2be commit 1acbea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/design/menu/src/menu-activator/menu-activator.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('@daffodil/design/menu | DaffMenuActivatorDirective', () => {
7676

7777
expect(menuService.open).toHaveBeenCalledWith(
7878
jasmine.anything(),
79-
component.daffMenuActivator,
79+
jasmine.anything(),
8080
de.nativeElement.getAttribute('aria-controls'),
8181
);
8282
});

0 commit comments

Comments
 (0)