Skip to content

Commit

Permalink
add index for scss, improve test mock
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Feb 10, 2020
1 parent 5da42c1 commit a941554
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/public/ui_settings/ui_settings_service.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { IUiSettingsClient } from './types';

const createSetupContractMock = () => {
const setupContract: jest.Mocked<IUiSettingsClient> = {
getAll: jest.fn(() => ({})),
getAll: jest.fn(),
get: jest.fn(),
get$: jest.fn(),
set: jest.fn(),
Expand All @@ -40,6 +40,7 @@ const createSetupContractMock = () => {
setupContract.getUpdate$.mockReturnValue(new Rx.Subject<any>());
setupContract.getSaved$.mockReturnValue(new Rx.Subject<any>());
setupContract.getUpdateErrors$.mockReturnValue(new Rx.Subject<any>());
setupContract.getAll.mockReturnValue({});

return setupContract;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

// Core
@import 'management_app';
@import '../../../../../plugins/advanced_settings/public/management_app/advanced_settings';
@import '../../../../../plugins/advanced_settings/public';
@import 'sections/index_patterns/index';
20 changes: 20 additions & 0 deletions src/plugins/advanced_settings/public/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

@import './management_app/advanced_settings';
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

.mgtAdvancedSettings__field {
+ * {
margin-top: $euiSize;
Expand Down

0 comments on commit a941554

Please sign in to comment.