-if Meteor.isClient
-  collection = new Mongo.Collection null
-else
-  collection = new Mongo.Collection 'test_collection'
-
 Tinytest.add "tracker - reactive variable", (test) ->
   try
     computation = null

    test.equal runs, [0, 1, 2, 3, 'flush1', 'flush-before', 'flush-after', 'flush2', 'flush-before', 'flush-after', 'flush-before', 'flush-after', 'flush-before', 'flush-after', 1, 2, 3, 'flush3', 'flush-before', 'flush-after', 'flush-before', 'flush-after', 'flush-before', 'flush-after', 2, 3, 'flush4', 'flush-before', 'flush-after', 'flush-before', 'flush-after']

  finally
    computation.stop()

if Meteor.isServer
  # Should be the same order as above, just that we are adding some yields.

      test.equal runs, [0, 1, 2, 3, 'flush1', 'flush-before', 'flush-after', 'flush2', 'flush-before', 'flush-after', 'flush-before', 'flush-after', 'flush-before', 'flush-after', 1, 2, 3, 'flush3', 'flush-before', 'flush-after', 'flush-before', 'flush-after', 'flush-before', 'flush-after', 2, 3, 'flush4', 'flush-before', 'flush-after', 'flush-before', 'flush-after']

    finally
      computation?.stop()

if Meteor.isClient
  collection = new Mongo.Collection null
else
  collection = new Mongo.Collection 'test_collection'

Tinytest.add "tracker - queries", (test) ->
  collection.remove {}
