Add tests for escapePattern and parsePattern.

This commit is contained in:
Lars Jung 2015-05-09 19:30:17 +02:00
parent a482529fdc
commit 7311cc8e4b
2 changed files with 124 additions and 6 deletions

View file

@ -90,11 +90,11 @@ describe('module \'' + ID + '\'', function () {
describe('application', function () {
it('returns object with 5 properties', function () {
it('returns object with 6 properties', function () {
var instance = this.applyFn();
assert.isPlainObject(instance);
assert.lengthOfKeys(instance, 5);
assert.lengthOfKeys(instance, 6);
});
it('adds HTML #view to #content', function () {
@ -187,6 +187,15 @@ describe('module \'' + ID + '\'', function () {
});
});
describe('.setHint()', function () {
it('is function', function () {
var instance = this.applyFn();
assert.ok(_.isFunction(instance.setHint));
});
});
// describe('._.createHtml()', function () {
// before(function () {