mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 12:07:10 -04:00
Clean code.
This commit is contained in:
parent
c396800dfa
commit
882bf8ae11
17 changed files with 202 additions and 148 deletions
|
@ -98,21 +98,27 @@ describe('module "' + ID + '"', function () {
|
|||
});
|
||||
});
|
||||
|
||||
describe('publics', function () {
|
||||
describe('.backend', function () {
|
||||
|
||||
it('.backend is set correct', function () {
|
||||
it('set correct', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.strictEqual(instance.backend, this.xConfig.setup.BACKEND);
|
||||
});
|
||||
});
|
||||
|
||||
it('.name is set correct', function () {
|
||||
describe('.name', function () {
|
||||
|
||||
it('set correct', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.strictEqual(instance.name, this.xConfig.setup.SERVER_NAME);
|
||||
});
|
||||
});
|
||||
|
||||
it('.version is set correct', function () {
|
||||
describe('.version', function () {
|
||||
|
||||
it('set correct', function () {
|
||||
|
||||
var instance = this.applyFn();
|
||||
assert.strictEqual(instance.version, this.xConfig.setup.SERVER_VERSION);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue