Open jankapunkt opened 7 years ago
Hey! So sorry for late response.
If this is still a problem for you, feel free to submit a PR!
hello, brook's I am having an issue with my publication test. it's returning an empty array.
describe('companyOrders.all', function() {
it('gets all the companyOrders available', function(done) {
const collector = new PublicationCollector({ userId: Random.id() });
collector.collect('companyOrders.all', function(collections) {
chai.assert.equal(collections.CompanyOrders.length, 5);
done();
});
});
});
I want to test (server side) a package, that auto-publishes data to the user. The publication scheme it uses therefore is
which adds the publication to the
universal_publish_handlers
instead ofpublish_handlers
, as taken from the code.When calling the
collector.collect(null, ...);
then of course I get an error, because it usespublish_handlers[name]
and notuniversal_publish_handlers
when no name is provided.Does it make sense to add this feature? I could try to provide a PR with an implementation and some tests, if desired.