workshopper / how-to-npm

A module to teach you how to module.
https://www.npmjs.com/package/how-to-npm
ISC License
1.12k stars 220 forks source link

The file name should be test.js instead of text.js #24

Closed cmoon2000 closed 8 years ago

cmoon2000 commented 9 years ago

In ex6-npm test, I verify successful with text.js. But the guide talks about test.js

linclark commented 9 years ago

Thanks for posting this. The name of the file doesn't matter as long as you use that filename in the command. So if you have a file named foobar.js which has tests in it, you can use the following:

  "scripts": {
    "test": "node foobar.js"
  },