Skip to content

Async: Don't use testFunc.toString to guess argument names or count #28

@mcbain

Description

@mcbain

http://stackoverflow.com/questions/1007981/how-to-get-function-parameter-names-values-dynamically-from-javascript

These technique does not work when using code-minification ( --production flag) or a function-wrapper without (test,waitFor) args in source-code.

Please allow to flag a test to be 'async' e.g

      it.async = function (name, fn) {
       it(name, function (test, waitFor) {
        return fn.apply(this, arguments);
    });
      };

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