Fix tests.

This commit is contained in:
Lars Jung 2015-05-08 22:13:06 +02:00
parent c35abad20a
commit a9f6f157fa
2 changed files with 30 additions and 3 deletions

View file

@ -29,7 +29,7 @@ describe('premisses', function () {
assert.isFunction(_);
assert.strictEqual(_, window._);
assert.strictEqual(_.VERSION, '3.6.0');
assert.strictEqual(_.VERSION, '3.8.0');
});
it('util is global object', function () {

View file

@ -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 () {