mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-20 20:51:21 +02:00
Fix tests.
This commit is contained in:
@@ -90,11 +90,11 @@ describe('module \'' + ID + '\'', function () {
|
||||
|
||||
describe('application', function () {
|
||||
|
||||
it('returns object with 2 properties', function () {
|
||||
it('returns object with 5 properties', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.isPlainObject(instance);
|
||||
assert.lengthOfKeys(instance, 2);
|
||||
assert.lengthOfKeys(instance, 5);
|
||||
});
|
||||
|
||||
it('adds HTML #view to #content', function () {
|
||||
@@ -160,6 +160,33 @@ describe('module \'' + ID + '\'', function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe('.setItems()', function () {
|
||||
|
||||
it('is function', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.ok(_.isFunction(instance.setItems));
|
||||
});
|
||||
});
|
||||
|
||||
describe('.changeItems()', function () {
|
||||
|
||||
it('is function', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.ok(_.isFunction(instance.changeItems));
|
||||
});
|
||||
});
|
||||
|
||||
describe('.setLocation()', function () {
|
||||
|
||||
it('is function', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.ok(_.isFunction(instance.setLocation));
|
||||
});
|
||||
});
|
||||
|
||||
// describe('._.createHtml()', function () {
|
||||
|
||||
// before(function () {
|
||||
|
Reference in New Issue
Block a user