tests-utils.js 455 B

12345678910111213141516171819
  1. (function () {
  2. 'use strict';
  3. QUnit.module("Acceptance Tests Utils");
  4. QUnit.test("create and destroy Misago app", function(assert) {
  5. var done = assert.async();
  6. var app = initTestMisago();
  7. assert.equal($('#router-fixture').length, 1, "#router-fixture created");
  8. app.destroy();
  9. window.setTimeout(function() {
  10. assert.equal($('#router-fixture').length, 0, "#router-fixture removed");
  11. done();
  12. }, 100);
  13. });
  14. }());