mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-04 17:03:41 -04:00
Fix tests.
This commit is contained in:
parent
c35abad20a
commit
a9f6f157fa
2 changed files with 30 additions and 3 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue