Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidballester committed Apr 18, 2020
1 parent 2138dea commit d8897cc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/scenes/welcome/new-graph/new-graph.component.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,4 @@ describe(NewGraph.name, () => {
.onSubmit(submitEvent);
expect(saveNewGraph).toHaveBeenCalledWith(input);
});

it('sets the dialog `open` prop to `true` if isOpen is true', () => {
const component = shallow(<NewGraph isOpen={true} cancelNewGraph={cancelNewGraph} saveNewGraph={saveNewGraph} />);
const dialog = component.find(Dialog).getElement();
expect(dialog.props.open).toBeTruthy();
});

it('sets the dialog `open` prop to `false` if isOpen is false', () => {
const component = shallow(<NewGraph isOpen={false} cancelNewGraph={cancelNewGraph} saveNewGraph={saveNewGraph} />);
const dialog = component.find(Dialog).getElement();
expect(dialog.props.open).toBeFalsy();
});
});

0 comments on commit d8897cc

Please sign in to comment.