From f55dc03a8d250475dc61b22408c98eb961b18b78 Mon Sep 17 00:00:00 2001 From: Elias Kuiter Date: Sun, 24 Mar 2019 00:26:06 +0100 Subject: [PATCH] v0.6.1 Fixed failing tests --- .../__snapshots__/AboutPanel.test.tsx.snap | 25 ++++++++++++++++++- .../FeatureCallout.test.tsx.snap | 8 ++++-- .../FeatureContextualMenu.test.tsx.snap | 10 ++++++-- client/src/helpers/Dialog.test.tsx | 4 +-- 4 files changed, 40 insertions(+), 7 deletions(-) diff --git a/client/src/components/overlays/__snapshots__/AboutPanel.test.tsx.snap b/client/src/components/overlays/__snapshots__/AboutPanel.test.tsx.snap index 8fd57b22..8d869e2d 100644 --- a/client/src/components/overlays/__snapshots__/AboutPanel.test.tsx.snap +++ b/client/src/components/overlays/__snapshots__/AboutPanel.test.tsx.snap @@ -16,7 +16,14 @@ exports[`AboutPanel renders correctly 1`] = ` View, edit and analyze feature models in the browser - with support for real-time collaboration.

- This project is released under the + This project is a research effort of the + + DBSE working group + + and has been released under the .

+

+ If you would like to leave any feedback, use our + + online form + + or + + mail me + + . +

{ wrapper = textFieldDialog(onSubmit, onDismiss); wrapper.find(TextField).simulate('change', null, 'some value'); wrapper.find(PrimaryButton).simulate('click'); - expect(onSubmit).toBeCalledWith('some value'); + expect(onSubmit).toBeCalledWith('some value', {current: null}); expect(onDismiss).toBeCalled(); }); @@ -117,7 +117,7 @@ describe('Dialog', () => { wrapper = textFieldDialog(onSubmit, onDismiss); wrapper.find(TextField).simulate('change', null, 'some value'); wrapper.find(TextField).simulate('keyPress', {key: 'Enter'}); - expect(onSubmit).toBeCalledWith('some value'); + expect(onSubmit).toBeCalledWith('some value', {current: null}); expect(onDismiss).toBeCalled(); });