mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-03 08:38:41 -04:00
Add integration test.
This commit is contained in:
parent
ea306c7d0c
commit
70c8364349
5 changed files with 154 additions and 20 deletions
|
@ -11,7 +11,6 @@ describe('module \'' + ID + '\'', function () {
|
|||
this.definition = modulejs._private.definitions[ID];
|
||||
|
||||
this.storeKey = '_h5ai';
|
||||
this.storeBackup = window.localStorage.getItem(this.storeKey);
|
||||
this.xModernizr = {localstorage: true};
|
||||
this.applyFn = function () {
|
||||
|
||||
|
@ -21,11 +20,12 @@ describe('module \'' + ID + '\'', function () {
|
|||
|
||||
after(function () {
|
||||
|
||||
if (this.storeBackup) {
|
||||
window.localStorage.setItem(this.storeKey, this.storeBackup);
|
||||
} else {
|
||||
window.localStorage.removeItem(this.storeKey);
|
||||
}
|
||||
util.restoreHtml();
|
||||
});
|
||||
|
||||
beforeEach(function () {
|
||||
|
||||
util.restoreHtml();
|
||||
});
|
||||
|
||||
describe('definition', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue