diff --git a/static/hogfather.js b/static/hogfather.js index 6b8e71f..e8503c8 100644 --- a/static/hogfather.js +++ b/static/hogfather.js @@ -24,3 +24,9 @@ */ var Hogfather = function(cosmo, name) { }; + + +/** + */ +Hogfather.prototype.shutdown = function() { +}; diff --git a/static/test.html b/static/test.html index db9b85f..32e3776 100644 --- a/static/test.html +++ b/static/test.html @@ -9,6 +9,7 @@
+ diff --git a/static/test.js b/static/test.js index ffa05d8..7ad3748 100644 --- a/static/test.js +++ b/static/test.js @@ -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'); +});