From f804c826e7248d6e558748ea6ba439f6920bf041 Mon Sep 17 00:00:00 2001 From: Crushford <45968181+Crushford@users.noreply.github.com> Date: Wed, 8 May 2019 21:00:56 +0200 Subject: [PATCH] Update step11.md the last step is missing in the Blaze version, this is copy pasted from the React version. test did not run without importing task.test.js to /tests/main.js. I also submitted an issue here https://github.com/meteor/tutorials/issues/188. (this is my first time doing this, hopefully did it right :) ) --- content/blaze/step11.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/content/blaze/step11.md b/content/blaze/step11.md index 030ee4c..6f1b6f1 100644 --- a/content/blaze/step11.md +++ b/content/blaze/step11.md @@ -37,6 +37,27 @@ Now we can write the test to call the `tasks.remove` method "as" that user and v {{> DiffBox tutorialName="simple-todos" step="11.4"}} +The only remaining step is to import this new test module into the main tests/main.js module: + +{{> DiffBox tutorialName="simple-todos-react" step="11.5"}} + +Run meteor test again +If you run the test command again (or if you left it running from before) + +TEST_WATCH=1 meteor test --driver-package meteortesting:mocha +you should now see the output from the new test module we just added: + +Tasks + methods + ✓ can delete owned task + +simple-todos-react + ✓ package.json has correct name + ✓ server is not client + +3 passing (120ms) + + There's a lot more you can do in a Meteor test! You can read more about it in the Meteor Guide [article on testing](http://guide.meteor.com/testing.html). {{/template}}