Skip to content

Commit

Permalink
Merge pull request #6 from clemenshelm/patch-1
Browse files Browse the repository at this point in the history
Fix typo and make sure asynchronous test succeeds.
  • Loading branch information
johanbrook authored Sep 1, 2016
2 parents 221fe7c + 68b38e8 commit 757921a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ meteor add johanbrook:publication-collector
// In a typical BDD style test suite:

describe('Publication', function() {
if('should publish 10 documents', function() {
it('should publish 10 documents', function(done) {
// Pass user context in constructor.
const collector = new PublicationCollector({userId: Random.id()});

// Collect documents from a subscription with 'collect(name, [arguments...], [callback])'
collector.collect('publicationName', 'someArgument', (collections) => {
assert.equal(collections.myCollection.length, 10);
done();
});
});
});
Expand Down

0 comments on commit 757921a

Please sign in to comment.