mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
76a2a9bb8b
* @metamask/eslint-config@5.0.0 * Update eslintrc and prettierrc * yarn lint:fix
8 lines
200 B
JavaScript
8 lines
200 B
JavaScript
import { shallow } from 'enzyme';
|
|
|
|
export default function shallowWithContext(jsxComponent) {
|
|
return shallow(jsxComponent, {
|
|
context: { t: (str1, str2) => (str2 ? str1 + str2 : str1) },
|
|
});
|
|
}
|