From 8b6f5c916d4ee1c7278e07b3ecc423faff583f5c Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 17 Oct 2015 16:04:37 +0200 Subject: [PATCH] First Hogfather test. --- static/hogfather.js | 6 ++++++ static/test.html | 1 + static/test.js | 15 +++++++++++++++ 3 files changed, 22 insertions(+) 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'); +});