From d4e9f85ee73420876df2a653bc9ccc7d996069ce Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Thu, 18 Aug 2022 22:14:18 -0300 Subject: [PATCH] tests(module-runtime): added verifyErrors tests --- packages/modules-runtime/modules-runtime-tests.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/modules-runtime/modules-runtime-tests.js b/packages/modules-runtime/modules-runtime-tests.js index 665c540a38..44da8b9a34 100644 --- a/packages/modules-runtime/modules-runtime-tests.js +++ b/packages/modules-runtime/modules-runtime-tests.js @@ -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`' + ); });