mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Refactor code.
This commit is contained in:
parent
16186811a4
commit
167e30dee1
4 changed files with 10 additions and 10 deletions
|
@ -19,7 +19,7 @@ describe('module \'' + ID + '\'', function () {
|
|||
setup: {
|
||||
APP_HREF: util.uniqId(),
|
||||
ROOT_HREF: util.uniqId(),
|
||||
CURRENT_HREF: util.uniqId()
|
||||
VERSION: util.uniqId()
|
||||
}
|
||||
};
|
||||
this.applyFn = function () {
|
||||
|
@ -101,12 +101,12 @@ describe('module \'' + ID + '\'', function () {
|
|||
});
|
||||
});
|
||||
|
||||
describe('.currentHref', function () {
|
||||
describe('.version', function () {
|
||||
|
||||
it('set correct', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.strictEqual(instance.currentHref, this.xConfig.setup.CURRENT_HREF);
|
||||
assert.strictEqual(instance.version, this.xConfig.setup.VERSION);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue