Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for jasmine 2.x #34

Merged
merged 5 commits into from
Jan 12, 2017
Merged

Conversation

giuband
Copy link
Contributor

@giuband giuband commented Jan 10, 2017

Related issue: #31

};
};

const toNotDispatchActions = () => {
Copy link
Member

Choose a reason for hiding this comment

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

Would be also nice to add a negative comparison support. See https://jasmine.github.io/2.0/custom_matcher.html#section-Custom_negative_comparators

/* eslint-env jasmine */
import { assertions } from 'redux-actions-assertions-js';

const toDispatchActions = () => {
Copy link
Member

Choose a reason for hiding this comment

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

Please use functions declarations as it is done in other files to keep format consistency


export {
registerAssertions,
matchers
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to expose matchers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is to import them from Jest and making the registration step more explicit on the jest's setupTestFrameworkScriptFile file (instead of simply calling jasmine's registerAssertions() there)

@giuband
Copy link
Contributor Author

giuband commented Jan 11, 2017

PR updated.

@dmitry-zaets dmitry-zaets merged commit 608a98b into redux-things:master Jan 12, 2017
@giuband giuband mentioned this pull request Jan 15, 2017
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