From a9f6f157faa7afb871f797004d3427e231161f54 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Fri, 8 May 2015 22:13:06 +0200 Subject: [PATCH] Fix tests. --- test/tests/premisses.js | 2 +- test/tests/unit/view/view.js | 31 +++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/test/tests/premisses.js b/test/tests/premisses.js index 60a2de09..21e7f65a 100644 --- a/test/tests/premisses.js +++ b/test/tests/premisses.js @@ -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 () { diff --git a/test/tests/unit/view/view.js b/test/tests/unit/view/view.js index 0a7a9d0e..78ee807d 100644 --- a/test/tests/unit/view/view.js +++ b/test/tests/unit/view/view.js @@ -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 () {