Clean tests.

This commit is contained in:
Lars Jung 2015-04-29 14:28:27 +02:00
parent 70c8364349
commit aa8b9789f7
2 changed files with 1 additions and 7 deletions

View file

@ -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 () {

View file

@ -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');
});