Skip to content
This repository was archived by the owner on Dec 27, 2018. It is now read-only.

Documented hooks not supported #103

Open
Torgen opened this issue Jul 22, 2018 · 0 comments
Open

Documented hooks not supported #103

Torgen opened this issue Jul 22, 2018 · 0 comments

Comments

@Torgen
Copy link

Torgen commented Jul 22, 2018

In Mocha, the before/after/beforeEach/afterEach hooks take a description and a function; if you pass only a function, it generates a description for you. This package's versions of those hooks take only a function. Someone reading the mocha docs (like me) and attempting to annotate their hooks would then get an opaque error like:

${testsuite_name} "before each" hook: wrappedFunction for "${testcase_name}":
TypeError: fn.call is not a function
at run (packages/practicalmeteor_mocha-core.js:90:16)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant