Skip to content

feat(reaclette): Next computed tests#32

Merged
julien-f merged 5 commits intoJsCommunity:nextfrom
GHEMID-Mohamed:next-computed-tests-next
Mar 13, 2019
Merged

feat(reaclette): Next computed tests#32
julien-f merged 5 commits intoJsCommunity:nextfrom
GHEMID-Mohamed:next-computed-tests-next

Conversation

@GHEMID-Mohamed
Copy link
Collaborator

No description provided.

@GHEMID-Mohamed GHEMID-Mohamed requested a review from julien-f March 13, 2019 10:38
@GHEMID-Mohamed GHEMID-Mohamed requested a review from julien-f March 13, 2019 12:55
src/new.spec.js Outdated
expect(getState().baz).toBe("baz");
expect(() => {
return getState().circularComputed;
}).toThrowError(new CircularComputedError("circularComputed"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use toThrow instead as it appear to be the canonical name in Jest's doc.

Copy link
Collaborator

@julien-f julien-f Mar 13, 2019

Choose a reason for hiding this comment

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

Also, I don't see anywhere in the doc that we can pass an error to it.

@GHEMID-Mohamed GHEMID-Mohamed requested a review from julien-f March 13, 2019 13:06
@julien-f julien-f merged commit daaa994 into JsCommunity:next Mar 13, 2019
julien-f pushed a commit that referenced this pull request 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