First Hogfather test.

This commit is contained in:
Ian Gulliver
2015-10-17 16:04:37 +02:00
parent 69aa0e711a
commit 8b6f5c916d
3 changed files with 22 additions and 0 deletions

View File

@@ -943,3 +943,18 @@ QUnit.asyncTest('sendMessage admin ACL', function(assert) {
});
});
});
QUnit.module('Hogfather');
QUnit.test('Construct/shutdown', function(assert) {
assert.expect(4);
var cosmo = new Cosmopolite(null, randstring());
assert.ok(true, 'new Cosmopolite() succeeds');
var hogfather = new Hogfather(cosmo, randstring());
assert.ok(true, 'new Hogfather()) succeeds');
hogfather.shutdown();
assert.ok(true, 'Hogfather.shutdown() succeeds');
cosmo.shutdown();
assert.ok(true, 'Cosmopolite.shutdown() succeeds');
});