Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Apr 15, 2020
1 parent 8d6ee1b commit 3d813f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ const services = {
es: search.__LEGACY.esClient,
indexPatterns,
savedObjectsClient: savedObjects.client as SavedObjectsClient,
config: uiSettings,
uiSettings,
changeUrl: jest.fn(),
openConfirm: overlays.openConfirm,
indexPatternCreationType: mockIndexPatternCreationType,
};

describe('CreateIndexPatternWizard', () => {
test(`defaults to the loading state`, async () => {
test(`defaults to the loading state`, () => {
const component = shallow(
<CreateIndexPatternWizard initialQuery={initialQuery} services={services} />
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface CreateIndexPatternWizardProps {
es: DataPublicPluginStart['search']['__LEGACY']['esClient'];
indexPatterns: DataPublicPluginStart['indexPatterns'];
savedObjectsClient: SavedObjectsClient;
config: IUiSettingsClient;
uiSettings: IUiSettingsClient;
changeUrl: (url: string) => void;
openConfirm: OverlayStart['openConfirm'];
};
Expand Down Expand Up @@ -256,7 +256,7 @@ export class CreateIndexPatternWizard extends Component<
savedObjectsClient={services.savedObjectsClient}
indexPatternCreationType={indexPatternCreationType}
goToNextStep={this.goToTimeFieldStep}
uiSettings={services.config}
uiSettings={services.uiSettings}
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ uiRoutes.when('/management/kibana/index_pattern', {
$routeParams.type
);
const services = {
config: npStart.core.uiSettings,
uiSettings: npStart.core.uiSettings,
es: npStart.plugins.data.search.__LEGACY.esClient,
indexPatterns: npStart.plugins.data.indexPatterns,
$http: npStart.core.http,
savedObjectsClient: npStart.core.savedObjects.client,
indexPatternCreationType,
changeUrl: url => {
Expand Down

0 comments on commit 3d813f5

Please sign in to comment.