mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-08 14:56:35 +02:00
Clean tests.
This commit is contained in:
@@ -22,8 +22,6 @@ describe('view', function () {
|
|||||||
modulejs._private.definitions.config = this.configBackup;
|
modulejs._private.definitions.config = this.configBackup;
|
||||||
util.clearModulejs();
|
util.clearModulejs();
|
||||||
util.restoreHtml();
|
util.restoreHtml();
|
||||||
window.localStorage.removeItem(this.storeKey);
|
|
||||||
$('body').removeAttr('id');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
@@ -32,13 +30,11 @@ describe('view', function () {
|
|||||||
modulejs.define('config', this.xConfig);
|
modulejs.define('config', this.xConfig);
|
||||||
util.clearModulejs();
|
util.clearModulejs();
|
||||||
util.restoreHtml();
|
util.restoreHtml();
|
||||||
window.localStorage.removeItem(this.storeKey);
|
|
||||||
$('body').removeAttr('id');
|
|
||||||
$('<div id="fallback"/>').appendTo('body');
|
$('<div id="fallback"/>').appendTo('body');
|
||||||
$('<div id="fallback-hints"/>').appendTo('body');
|
$('<div id="fallback-hints"/>').appendTo('body');
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('requiring view/viewmode', function () {
|
describe('requiring view/viewmode sets up basic HTML', function () {
|
||||||
|
|
||||||
it('requires without errors', function () {
|
it('requires without errors', function () {
|
||||||
|
|
||||||
|
@@ -19,13 +19,11 @@ describe('module \'' + ID + '\'', function () {
|
|||||||
after(function () {
|
after(function () {
|
||||||
|
|
||||||
util.restoreHtml();
|
util.restoreHtml();
|
||||||
$('body').removeAttr('id');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
|
|
||||||
util.restoreHtml();
|
util.restoreHtml();
|
||||||
$('body').removeAttr('id');
|
|
||||||
$('<div id="fallback"/>').appendTo('body');
|
$('<div id="fallback"/>').appendTo('body');
|
||||||
$('<div id="fallback-hints"/>').appendTo('body');
|
$('<div id="fallback-hints"/>').appendTo('body');
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user