mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
tests(module-runtime): added node_module error validation
This commit is contained in:
@@ -11,7 +11,12 @@ Tinytest.add('errors - standard', function (test) {
|
||||
}, 'Cannot find package "foo". Try "meteor add foo".');
|
||||
});
|
||||
|
||||
|
||||
Tinytest.add('errors - node_modules', function (test) {
|
||||
var require = meteorInstall();
|
||||
test.throws(() => {
|
||||
require('./node_modules/foo');
|
||||
}, "Cannot find module './node_modules/foo'");
|
||||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Tinytest.add('server - throwClientError', function (test) {
|
||||
|
||||
Reference in New Issue
Block a user