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
4daab5d77b
commit
9102b6d1c3
7 changed files with 56 additions and 147 deletions
|
@ -7,33 +7,30 @@
|
|||
$(function () {
|
||||
|
||||
modulejs.define('config', util.uniqObj());
|
||||
var insts = modulejs._private.instances;
|
||||
for (var member in insts) {
|
||||
if (insts.hasOwnProperty(member)) {
|
||||
delete insts[member];
|
||||
}
|
||||
}
|
||||
_.each(modulejs._private.instances, function (val, key) {
|
||||
delete modulejs._private.instances[key];
|
||||
});
|
||||
|
||||
$('html').removeClass();
|
||||
util.pinHtml();
|
||||
util.runMocha();
|
||||
});
|
||||
|
||||
util.setupMocha();
|
||||
|
||||
describe('unit tests', function () {
|
||||
describe('all tests', function () {
|
||||
|
||||
// @include "tests/unit/premisses.js"
|
||||
// @include "tests/unit/modulejs.js"
|
||||
// @include "tests/unit/libs.js"
|
||||
// @include "tests/unit/boot.js"
|
||||
// @include "tests/unit/config.js"
|
||||
// @include "tests/unit/*/*.js"
|
||||
});
|
||||
describe('unit tests', function () {
|
||||
// @include "tests/unit/premisses.js"
|
||||
// @include "tests/unit/modulejs.js"
|
||||
// @include "tests/unit/libs.js"
|
||||
// @include "tests/unit/boot.js"
|
||||
// @include "tests/unit/config.js"
|
||||
// @include "tests/unit/*/*.js"
|
||||
});
|
||||
|
||||
describe('integration tests', function () {
|
||||
|
||||
// @include "tests/integration/**/*.js"
|
||||
describe('integration tests', function () {
|
||||
// @include "tests/integration/**/*.js"
|
||||
});
|
||||
});
|
||||
|
||||
}());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue