Fixes: tests. Added karma and mocha tests.

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-07 20:07:41 -03:00
commit 8ad1fa7b02
7 changed files with 40 additions and 9 deletions

View file

@ -27,6 +27,18 @@ FakeStorage.prototype.getLastOpened = function() {
return this.storage['lastOpened'];
};
FakeStorage.prototype.setIsOpen = function(id) {
this.storage[id + '::isOpen'] = true;
}
FakeStorage.prototype.getIsOpen = function(id) {
return this.storage[id + '::isOpen'];
}
FakeStorage.prototype.removeIsOpen = function(id) {
delete this[id + '::isOpen'];
}
FakeStorage.prototype.removeGlobal = function(id) {
delete this.storage[id];
};