Clean tests.
This commit is contained in:
parent
70c8364349
commit
aa8b9789f7
2 changed files with 1 additions and 7 deletions
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue