Skip to content

Instantly share code, notes, and snippets.

View abernix's full-sized avatar
🤗

Jesse Rosenberger abernix

🤗
View GitHub Profile
@abernix
abernix / z_collection-stub.js
Created August 28, 2015 14:34
A mock for the Meteor smart package collection-hooks. Add this file in the folder tests/jasmine/server/unit/
// publish-composite
Meteor.publishComposite = function () {};
beforeEach(function () {
Meteor.publishComposite = function () {};
});
var originalMeteorCollection = Meteor.Collection;
Meteor.Collection = function () {