0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/test/webui/components/__mocks__/storage.js
2018-01-07 07:59:36 +00:00

17 lines
213 B
JavaScript

/**
* Storage mock
*/
const store = {};
const storage = {
setItem: (key, value) => {
store[key] = value;
return store;
},
getItem: key => {
return store[key];
}
};
export default storage;