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

tests fail on debian due to hard coded paths. #5

Open
pravi opened this issue Oct 31, 2016 · 3 comments
Open

tests fail on debian due to hard coded paths. #5

pravi opened this issue Oct 31, 2016 · 3 comments

Comments

@pravi
Copy link

pravi commented Oct 31, 2016

mocha -R spec


  mods
    1) should resolve the path to the global npm modules directory:


  0 passing (20ms)
  1 failing

  1) mods should resolve the path to the global npm modules directory::
     AssertionError: false == true
      at Context.<anonymous> (/<<PKGBUILDDIR>>/test.js:17:5)
      at callFn (/usr/lib/nodejs/mocha/lib/runnable.js:223:21)
      at Test.Runnable.run (/usr/lib/nodejs/mocha/lib/runnable.js:216:7)
      at Runner.runTest (/usr/lib/nodejs/mocha/lib/runner.js:373:10)
      at /usr/lib/nodejs/mocha/lib/runner.js:451:12
      at next (/usr/lib/nodejs/mocha/lib/runner.js:298:14)
      at /usr/lib/nodejs/mocha/lib/runner.js:308:7
      at next (/usr/lib/nodejs/mocha/lib/runner.js:246:23)
      at Immediate._onImmediate (/usr/lib/nodejs/mocha/lib/runner.js:275:5)
      at processImmediate [as _immediateCallback] (timers.js:383:17)

On debian the global modules path is /usr/lib/nodejs. Its similar to jonschlinkert/global-prefix#15

@pravi
Copy link
Author

pravi commented Oct 31, 2016

I have patched the debian package and if that is all required, I can close this issue.

@pravi
Copy link
Author

pravi commented Oct 31, 2016

On debian, packaged executable is "nodejs" instead of "node", probably we could use that to identify debian.

@jonschlinkert
Copy link
Owner

probably we could use that to identify debian.

Do you want to do a pr?

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

2 participants