mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
tests(module-runtime): added verifyErrors tests
This commit is contained in:
@@ -11,12 +11,12 @@ Tinytest.add('modules - meteor/ - error', function (test) {
|
||||
|
||||
Tinytest.add('modules - client calling server', function (test) {
|
||||
const require = meteorInstall();
|
||||
test.throws(require('./../server/main.js'), `Unable to import on the client a module from a server directory: './../server/main.js'
|
||||
(cross-boundary import) see: https://guide.meteor.com/structure.html#special-directories`);
|
||||
test.throws(require('./../server/main.js'), 'Unable to import on the client a module from a server directory: ' + id + ' \n (cross-boundary import) see: https://guide.meteor.com/structure.html#special-directories`'
|
||||
);
|
||||
});
|
||||
|
||||
Tinytest.add('modules - server - error', function (test) {
|
||||
Tinytest.add('modules - server calling client', function (test) {
|
||||
const require = meteorInstall();
|
||||
test.throws(require('./../client/main.js'), `Unable to import on the server a module from a client directory: './../client/main.js'
|
||||
(cross-boundary import) see: https://guide.meteor.com/structure.html#special-directories`);
|
||||
test.throws(require('./../client/main.js'), 'Unable to import on the server a module from a client directory: ' + id + ' \n (cross-boundary import) see: https://guide.meteor.com/structure.html#special-directories`'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user