All files registerSchemas.js

80% Statements 4/5
33.33% Branches 1/3
100% Functions 2/2
80% Lines 4/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13        48x     48x 66x   48x    
import isEmpty from 'lodash/isEmpty'
import {Map} from 'immutable'
 
export default function (store, modelMap = {}) {
  Iif (isEmpty(modelMap)) {
    console.error('[@citygro/vdata] you have not defined any models!')
  }
  Object.keys(modelMap).forEach((modelName) => {
    store = store.set(modelName, Map())
  })
  return store
}