Skip to content

Conversation

GHEMID-Mohamed
Copy link
Collaborator

No description provided.

@GHEMID-Mohamed GHEMID-Mohamed requested a review from julien-f March 21, 2019 15:55
src/new.spec.js Outdated

it("returns the React tree to render", () => {
const wrapper = shallow(
createElement(withStore({}, () => createElement("h1")), {})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think props are optional.

src/new.spec.js Outdated
createElement(withStore({}, () => createElement("h1")), {})
);
expect(wrapper.getElement()).toEqual(createElement("h1"));
expect(wrapper.html()).toEqual("<h1></h1>");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only one of these tests is enough.

@GHEMID-Mohamed GHEMID-Mohamed requested a review from julien-f March 21, 2019 16:23
@julien-f julien-f merged commit f627829 into JsCommunity:next Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants