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

Documented hooks not supported #103

@Torgen

Description

@Torgen

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions