Add hogfather basic structure.

This commit is contained in:
Ian Gulliver
2015-12-24 15:00:26 -08:00
parent 8b6f5c916d
commit 6e879ce1d5
2 changed files with 17 additions and 7 deletions

View File

@@ -947,14 +947,19 @@ QUnit.asyncTest('sendMessage admin ACL', function(assert) {
QUnit.module('Hogfather');
QUnit.test('Construct/shutdown', function(assert) {
QUnit.asyncTest('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());
var hogfather = new Hogfather(cosmo, randstring(), function() {
hogfather.shutdown();
assert.ok(true, 'Hogfather.shutdown() succeeds');
cosmo.shutdown();
assert.ok(true, 'Cosmopolite.shutdown() succeeds');
QUnit.start();
});
assert.ok(true, 'new Hogfather()) succeeds');
hogfather.shutdown();
assert.ok(true, 'Hogfather.shutdown() succeeds');
cosmo.shutdown();
assert.ok(true, 'Cosmopolite.shutdown() succeeds');
});