}
};
- Promise.all([getComponentNavigation(id), getComponentData(id, branch)]).then(([nav, data]) => {
+ Promise.all([
+ getComponentNavigation(id, branch),
+ getComponentData(id, branch)
+ ]).then(([nav, data]) => {
const component = this.addQualifier({ ...nav, ...data });
if (this.props.organizationsEnabled) {
return doAsync().then(() => {
expect(getBranches).toBeCalledWith('projectKey');
expect(getComponentData).toBeCalledWith('moduleKey', undefined);
- expect(getComponentNavigation).toBeCalledWith('moduleKey');
+ expect(getComponentNavigation).toBeCalledWith('moduleKey', undefined);
});
});
return doAsync().then(() => {
expect(getBranches).not.toBeCalled();
expect(getComponentData).toBeCalledWith('portfolioKey', undefined);
- expect(getComponentNavigation).toBeCalledWith('portfolioKey');
+ expect(getComponentNavigation).toBeCalledWith('portfolioKey', undefined);
expect(wrapper.find(Inner).exists()).toBeTruthy();
});
});