    });
  });

});

suite('Queueing timeouts with a wait time', function() {

  test('The queued function runs.', function(done) {
    var callCount = 0;
    var callback = function() {
      callCount++;
    };
    timeOut.run(callback, 50);
    timeOut.after(50).run(callback);
    setTimeout(function() {
      assert.equal(callCount, 2);
      done();
    }, 100);
  });

  test('Functions queued multiple times are run multiple times.', function(done) {
    var callCount = 0;
    var callback = function() 