summaryrefslogtreecommitdiffstats
path: root/packages/kadira-flow-router/test/client/_helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/kadira-flow-router/test/client/_helpers.js')
-rw-r--r--packages/kadira-flow-router/test/client/_helpers.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/kadira-flow-router/test/client/_helpers.js b/packages/kadira-flow-router/test/client/_helpers.js
new file mode 100644
index 00000000..94376f00
--- /dev/null
+++ b/packages/kadira-flow-router/test/client/_helpers.js
@@ -0,0 +1,10 @@
+GetSub = function (name) {
+ for(var id in Meteor.connection._subscriptions) {
+ var sub = Meteor.connection._subscriptions[id];
+ if(name === sub.name) {
+ return sub;
+ }
+ }
+};
+
+FlowRouter.route('/');