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

Mocha: before description removal #34

Closed
Vanuan opened this issue Feb 21, 2017 · 1 comment · Fixed by #38
Closed

Mocha: before description removal #34

Vanuan opened this issue Feb 21, 2017 · 1 comment · Fixed by #38

Comments

@Vanuan
Copy link

Vanuan commented Feb 21, 2017

In mocha this is a valid before hook:

beforeEach('some initialization', () => {

});

In jasmine this fails with the error:

    TypeError: originalBodyFn.apply is not a function

      at Object.fn (node_modules/jest-jasmine2/build/jasmine-async.js:64:44)

I.e. transformer should remove descriptions from before/after hooks.

@skovhus
Copy link
Owner

skovhus commented Feb 22, 2017

Thanks for reporting this! Feel free to submit a pull request, maybe you want to give it a try? : )

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 a pull request may close this issue.

2 participants