Super basic test for stream package. Not a lot of coverage, but enough to catch a recent regression in stream_client.js.

This commit is contained in:
Nick Martin
2012-02-16 15:13:00 -08:00
parent eaaedd3b43
commit 5cd46e7f3e
2 changed files with 13 additions and 0 deletions

View File

@@ -12,3 +12,9 @@ Package.on_use(function (api) {
api.add_files('stream_client.js', 'client');
api.add_files('stream_server.js', 'server');
});
Package.on_test(function (api) {
api.use('stream', ['client', 'server']);
api.use('tinytest');
api.add_files('stream_tests.js', 'client');
});

View File

@@ -0,0 +1,7 @@
test("stream - status", function () {
// Very basic test. Just see that it runs and returns something. Not a
// lot of coverage, but enough that it would have caught a recent bug.
var status = Meteor.status();
assert.equal(typeof status, "object");
assert.isTrue(status.status);
});