Add flag for detecting if the mock is being used

This commit is contained in:
Peter Jaszkowiak
2017-04-19 20:44:11 -06:00
parent 30b47d39f3
commit cc76a8663d

View File

@@ -8,6 +8,7 @@ define('storage', function () {
this._store = {};
this._keys = [];
}
Storage.prototype.isMock = true;
Storage.prototype.setItem = function (key, val) {
key = String(key);
if (this._keys.indexOf(key) === -1) {