mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
- fix livedata stub - stubs before connected
This commit is contained in:
@@ -2293,7 +2293,7 @@ if (Meteor.isClient) {
|
||||
test.length(stream.sent, 0);
|
||||
|
||||
// Insert a document. The stub updates "conn" directly.
|
||||
coll.insertAsync({ _id: 'foo', bar: 42 }, _.identity);
|
||||
await coll.insertAsync({ _id: 'foo', bar: 42 }, _.identity);
|
||||
test.equal(coll.find().count(), 1);
|
||||
test.equal(await coll.findOneAsync(), { _id: 'foo', bar: 42 });
|
||||
// It also sends the method message.
|
||||
|
||||
Reference in New Issue
Block a user