mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-03 08:38:41 -04:00
Add tests for escapePattern and parsePattern.
This commit is contained in:
parent
a482529fdc
commit
7311cc8e4b
2 changed files with 124 additions and 6 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue