Skip to content

Commit

Permalink
Merge pull request #13 from Davidyuk/master
Browse files Browse the repository at this point in the history
Retrieve all property names of Collection, fixes #11
  • Loading branch information
hwillson committed Nov 15, 2016
2 parents 69c4156 + 041a0f6 commit 06f9aca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stub_collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const StubCollections = (() => {
privateApi.sandbox = sinon.sandbox.create();
privateApi.pairs = {};
privateApi.collections = [];
privateApi.symbols = _.keys(Mongo.Collection.prototype);
privateApi.symbols = [];
for (let symbol in Mongo.Collection.prototype)
privateApi.symbols.push(symbol);

privateApi.stubPair = (pair) => {
privateApi.symbols.forEach((symbol) => {
Expand Down

0 comments on commit 06f9aca

Please sign in to comment.