First Hogfather test.
This commit is contained in:
@@ -24,3 +24,9 @@
|
||||
*/
|
||||
var Hogfather = function(cosmo, name) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
Hogfather.prototype.shutdown = function() {
|
||||
};
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<div id="qunit-fixture"></div>
|
||||
<script src="https://code.jquery.com/qunit/qunit-git.js"></script>
|
||||
<script src="/cosmopolite/static/cosmopolite.js" charset="UTF-8"></script>
|
||||
<script src="/cosmopolite/static/hogfather.js" charset="UTF-8"></script>
|
||||
<script src="test.js" charset="UTF-8"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user