it was brought up in the issue that making "npm test" throw an error when there are no tests could break things for some people. 

plus there already was a pull request without the special case.