All files / src/common/utils test.utils.js

100% Statements 4/4
66.67% Branches 4/6
66.67% Functions 2/3
100% Lines 3/3

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 710x 72x       10x  
export const createDefaultProps = (params, { addTranslate = true } = {}) => ({
  translate: addTranslate ? (value) => (Array.isArray(value) ? value[0] : value) : undefined,
  ...params,
})
 
export const emptyFunc = () => {}