我正在尝试编写一个测试用例以调用方法
it('should be call openMoreOptions method', async() => {
spyOn(component, 'openMoreOptions').and.callThrough()
component.openMoreOptions()
expect(component.openMoreOptions).toHaveBeenCalled();
})
openMoreOptions() {
this.moreMenu.enable(false, 'menuSearch');
this.moreMenu.enable(true, 'menuMore');
this.moreMenu.enable(false, 'menuTickets');
this.moreMenu.toggle()
}