Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestNpmModule Fails #10

Open
jahewson opened this issue May 4, 2017 · 0 comments
Open

TestNpmModule Fails #10

jahewson opened this issue May 4, 2017 · 0 comments

Comments

@jahewson
Copy link

jahewson commented May 4, 2017

TestNpmModule fails, at least on macOS 10.12.4. go1.6.4.

motto $ go test
load index.js
load sort.js
--- FAIL: TestNpmModule (0.00s)
        motto_test.go:29: Error: motto: Module not found: underscore
        motto_test.go:35: npm test failed:  0 != 1
FAIL
exit status 1
FAIL    github.com/ddliu/motto  0.035s

Looking at the .js file:

var _ = require('underscore');
module.exports =  _.min([3,2,1,4,5]);

My understanding of this is that 'underscore' is expected to be in node_modules, but no such directory exists. The test data seems incomplete?

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

No branches or pull requests

1 participant