PastKlub = new Meteor.Collection('test-pastklub');

removeAll = function () {
  PastKlub.find().fetch().map(function (klub) {
    PastKlub.remove(klub._id);
  })
}

/*
 Test futureI
*/

Tinytest.add("futureI with no klub", function (test) {
  test.equal(futureI(), 1);

  removeAll();
});

Tinytest.add("futureI with klubs an max i equal to 13", function (test) {
  var i = 5;

  PastKlub.insert({i: 1});
  PastKlub.insert({i: 5});
  PastKlub.insert({i: 13});

  console.log("before", PastKlub.find().count())

  test.equal(futureI(),14);

  removeAll();
});



@@ -320,10 +320,14 @@
 ubs 
+with 
 a
-n
  max
@@ -462,58 +462,8 @@
 );%0A%0A
-  console.log(%22before%22, PastKlub.find().count())%0A%0A
   te
@@ -506,10 +506,8 @@
 ();%0A%7D);%0A
-%0A%0A

remove un console.log