Unit tests are much easier to build than behavior tests. These tests make sure that only a section of the web application is working correctly, such as
Meteor.method or a template helper.
meteor add sanjo:jasmine
Now create two directories:
/jasmine/server/integration. These are the special directories where
jasmine runs tests. Let's build a quick test for the
# /tests/jasmine/client/integration/publishers/products_pub_test.coffee do -> 'use strict' describe "Products publisher", -> it "should return product data", -> # SETUP subscription = Meteor.subscribe("products") if subscription.ready() # EXECUTE product = Products.findOne() ...