h5ai/test/scripts.js

37 lines
786 B
JavaScript
Raw Normal View History

2015-04-22 17:12:45 +02:00
// @include "lib/*.js"
// @include "util/*.js"
(function () {
2015-04-23 00:08:43 +02:00
'use strict';
2015-04-22 17:12:45 +02:00
2015-04-23 00:08:43 +02:00
$(function () {
2015-04-22 17:12:45 +02:00
2015-04-24 00:01:56 +02:00
modulejs.define('config', util.uniqObj());
2015-04-24 15:17:54 +02:00
_.each(modulejs._private.instances, function (val, key) {
delete modulejs._private.instances[key];
});
2015-04-23 00:08:43 +02:00
util.pinHtml();
util.runMocha();
});
2015-04-22 17:12:45 +02:00
2015-04-23 00:08:43 +02:00
util.setupMocha();
2015-04-22 17:12:45 +02:00
2015-04-24 15:17:54 +02:00
describe('all tests', function () {
2015-04-22 17:12:45 +02:00
2015-04-24 15:17:54 +02:00
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"
});
2015-04-22 17:12:45 +02:00
2015-04-24 15:17:54 +02:00
describe('integration tests', function () {
// @include "tests/integration/**/*.js"
});
2015-04-23 00:08:43 +02:00
});
2015-04-22 17:12:45 +02:00
}());