0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
verdaccio/test/webui/components/__mocks__/storage.js

18 lines
213 B
JavaScript
Raw Normal View History

2017-12-01 14:04:01 -05:00
/**
* Storage mock
*/
const store = {};
const storage = {
setItem: (key, value) => {
store[key] = value;
return store;
},
getItem: key => {
return store[key];
}
};
export default storage;