order.js 273 B

12345678910111213141516171819
  1. 'use strict';
  2. var test = require('../');
  3. var current = 0;
  4. test(function (t) {
  5. t.equal(current++, 0);
  6. t.end();
  7. });
  8. test(function (t) {
  9. t.plan(1);
  10. setTimeout(function () {
  11. t.equal(current++, 1);
  12. }, 100);
  13. });
  14. test(function (t) {
  15. t.equal(current++, 2);
  16. t.end();
  17. });