2018-08-08 15:51:06 +02:00
|
|
|
import { shallow } from 'enzyme'
|
|
|
|
|
|
|
|
export default function (jsxComponent) {
|
|
|
|
return shallow(jsxComponent, {
|
2019-12-03 17:53:13 +01:00
|
|
|
context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) },
|
2018-08-08 15:51:06 +02:00
|
|
|
})
|
|
|
|
}
|