Skip to content

Commit

Permalink
Fix static test
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-sviziev authored Aug 14, 2020
1 parent c2e254c commit c490073
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,14 @@ define([
spyOn(obj, 'reload').and.returnValue(true);
spyOn($, 'initNamespaceStorage').and.callFake(function (name) {
let ns = {
localStorage: {cookie: false, _ns: name},
sessionStorage: {cookie: false, _ns: name}
localStorage: {
cookie: false,
_ns: name
},
sessionStorage: {
cookie: false,
_ns: name
}
};

$.namespaceStorages[name] = ns;
Expand All @@ -92,7 +98,7 @@ define([
afterEach(function () {
obj.reload = originalReload;
$.initNameSpaceStorage = originalInitNamespaceStorage;
$.namespaceStorages={};
$.namespaceStorages = {};
});

it('Should be defined', function () {
Expand Down

0 comments on commit c490073

Please sign in to comment.