mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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');
|
||||
});
|
||||
|
||||
7
packages/stream/stream_tests.js
Normal file
7
packages/stream/stream_tests.js
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user