mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
8131041701
* Refactor extension format and load plugins from directory * Added some UI around plugins * Refactor PromptModal usage
21 lines
334 B
JavaScript
21 lines
334 B
JavaScript
import 'whatwg-fetch';
|
|
|
|
const localStorageMock = (function () {
|
|
let store = {};
|
|
|
|
return {
|
|
getItem (key) {
|
|
return store[key];
|
|
},
|
|
setItem (key, value) {
|
|
store[key] = value.toString();
|
|
},
|
|
clear () {
|
|
store = {};
|
|
}
|
|
};
|
|
})();
|
|
|
|
global.localStorage = localStorageMock;
|
|
global.require = require;
|