mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-31 23:38:20 -04:00
Fix tests.
This commit is contained in:
parent
c35abad20a
commit
a9f6f157fa
2 changed files with 30 additions and 3 deletions
|
@ -29,7 +29,7 @@ describe('premisses', function () {
|
||||||
|
|
||||||
assert.isFunction(_);
|
assert.isFunction(_);
|
||||||
assert.strictEqual(_, window._);
|
assert.strictEqual(_, window._);
|
||||||
assert.strictEqual(_.VERSION, '3.6.0');
|
assert.strictEqual(_.VERSION, '3.8.0');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('util is global object', function () {
|
it('util is global object', function () {
|
||||||
|
|
|
@ -90,11 +90,11 @@ describe('module \'' + ID + '\'', function () {
|
||||||
|
|
||||||
describe('application', function () {
|
describe('application', function () {
|
||||||
|
|
||||||
it('returns object with 2 properties', function () {
|
it('returns object with 5 properties', function () {
|
||||||
|
|
||||||
var instance = this.applyFn();
|
var instance = this.applyFn();
|
||||||
assert.isPlainObject(instance);
|
assert.isPlainObject(instance);
|
||||||
assert.lengthOfKeys(instance, 2);
|
assert.lengthOfKeys(instance, 5);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('adds HTML #view to #content', function () {
|
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 () {
|
// describe('._.createHtml()', function () {
|
||||||
|
|
||||||
// before(function () {
|
// before(function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue