Chore: Test coverage hunt (#36)
* chore: add brand mocking in gallery view * feat: dev gallery app * chore: link mock block ids to real block type api * feat: image settings page features * chore: more tests * chore: keystore util and more testing * chore: more tests * chore: re-install lint plugin... * chore: lint fixes * chore: moar tests * chore: remove brand from module.config and link gallery to edx.org brand
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
/* eslint-disable import/prefer-default-export */
|
||||
export { default as StrictDict } from './StrictDict';
|
||||
export { default as keyStore } from './keyStore';
|
||||
|
||||
10
src/editors/utils/keyStore.js
Normal file
10
src/editors/utils/keyStore.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import StrictDict from './StrictDict';
|
||||
|
||||
const keyStore = (collection) => StrictDict(
|
||||
Object.keys(collection).reduce(
|
||||
(obj, key) => ({ ...obj, [key]: key }),
|
||||
{},
|
||||
),
|
||||
);
|
||||
|
||||
export default keyStore;
|
||||
Reference in New Issue
Block a user