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