Skip to content

Commit

Permalink
Removing unnecessary act statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Dec 13, 2019
1 parent d868e34 commit 1c4420b
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions x-pack/legacy/plugins/lens/public/app_plugin/app.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,9 @@ describe('Lens App', () => {
expect(getButton(instance).disableButton).toEqual(true);

const onChange = frame.mount.mock.calls[0][1].onChange;

act(() => {
onChange({
filterableIndexPatterns: [],
doc: ({ id: 'will save this', expression: 'valid expression' } as unknown) as Document,
});
onChange({
filterableIndexPatterns: [],
doc: ({ id: 'will save this', expression: 'valid expression' } as unknown) as Document,
});
instance.update();
expect(getButton(instance).disableButton).toEqual(true);
Expand Down Expand Up @@ -456,11 +453,9 @@ describe('Lens App', () => {
expect(getButton(instance).disableButton).toEqual(true);

const onChange = frame.mount.mock.calls[0][1].onChange;
act(() => {
onChange({
filterableIndexPatterns: [],
doc: ({ id: 'will save this', expression: 'valid expression' } as unknown) as Document,
});
onChange({
filterableIndexPatterns: [],
doc: ({ id: 'will save this', expression: 'valid expression' } as unknown) as Document,
});
instance.update();

Expand Down

0 comments on commit 1c4420b

Please sign in to comment.