components
components copied to clipboard
test(menu): remove provideZoneChangeDetection for all menu tests
This removes 'provideZoneChangeDetection' from menu tests. Change summary:
- Many tests set inputs directly. This isn't really how it happens in applications - inputs set from the template automatically mark components for check. When tests set inputs directly like this, they need to call
markForCheck
manually (or something similar). - One test seems to be calling a public API (
CdkContextMenuTrigger.open
) that failed to callmarkForCheck
so that was added to the implementation -
fakeAsync
had an additional timer so I just addedflush
to make it work.