From aa8b9789f72bb524f887e70223c5ae9024a403d6 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Wed, 29 Apr 2015 14:28:27 +0200 Subject: [PATCH] Clean tests. --- test/tests/integration/view.js | 6 +----- test/tests/unit/view/root.js | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/test/tests/integration/view.js b/test/tests/integration/view.js index ab3e80c2..95b41fe4 100644 --- a/test/tests/integration/view.js +++ b/test/tests/integration/view.js @@ -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'); $('
').appendTo('body'); $('
').appendTo('body'); }); - describe('requiring view/viewmode', function () { + describe('requiring view/viewmode sets up basic HTML', function () { it('requires without errors', function () { diff --git a/test/tests/unit/view/root.js b/test/tests/unit/view/root.js index f7f2c3d6..b8e47188 100644 --- a/test/tests/unit/view/root.js +++ b/test/tests/unit/view/root.js @@ -19,13 +19,11 @@ describe('module \'' + ID + '\'', function () { after(function () { util.restoreHtml(); - $('body').removeAttr('id'); }); beforeEach(function () { util.restoreHtml(); - $('body').removeAttr('id'); $('
').appendTo('body'); $('
').appendTo('body'); });