Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Allow injection test function to accept either es2015 export module and module.exports #43

Open
pragmaticivan opened this issue Feb 24, 2017 · 0 comments

Comments

@pragmaticivan
Copy link
Contributor

Currently, the code just checks the default object inside the module:

  test(filename, module, magnet) {
    return isObject(module.route) && isFunction(module.default);
  },

Should the test function allow the user to be able to do something like that?

module.exports = function() {
}

exports route={};
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant