Skip to content

Conversation

@martindale
Copy link
Contributor

This exposes the Express middleware on the module.

Use: app.use( bitauth.middleware );

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we assuming that devs will have mocha installed globally? it's set as a devDependency in the package.json, so it should be available locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great question; I wasn't able to get it running out of the .bin folder, but I knew I had it available globally. Seems like an environment-specific mechanism (unless I'm misunderstanding?), so is there a way to detect where mocha is available?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure, always seems to be available to me at that path, but could be specific to my NPM version. assuming global might be just fine - users can install mocha globally, or likely already have it.

161chihuahuas pushed a commit that referenced this pull request Jul 1, 2014
@161chihuahuas 161chihuahuas merged commit 73ca83b into bitpay:master Jul 1, 2014
bitjson pushed a commit that referenced this pull request Feb 13, 2018
fix verify + change to phantomjs browser
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 this pull request may close these issues.

3 participants