Skip to content

Commit

Permalink
revert cloneDeep
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Sep 25, 2024
1 parent c2ab4e0 commit 16fa60d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/plugins/lens/public/app_plugin/app.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { buildExistsFilter, FilterStateStore } from '@kbn/es-query';
import type { FieldSpec } from '@kbn/data-plugin/common';
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
import { serverlessMock } from '@kbn/serverless/public/mocks';
import { cloneDeep } from 'lodash';
import moment from 'moment';
import { setState, LensAppState } from '../state_management';
import { coreMock } from '@kbn/core/public/mocks';
Expand Down Expand Up @@ -63,10 +64,9 @@ const defaultSavedObjectId: string = faker.random.uuid();
const waitToLoad = async () =>
await act(async () => new Promise((resolve) => setTimeout(resolve, 0)));

const getLensDocumentMock = (someProps?: Partial<LensDocument>) => ({
...defaultDoc,
...someProps,
});
function getLensDocumentMock(propsOverrides?: Partial<LensDocument>) {
return cloneDeep({ ...defaultDoc, ...propsOverrides });
}

describe('Lens App', () => {
let props: jest.Mocked<LensAppProps>;
Expand Down

0 comments on commit 16fa60d

Please sign in to comment.