I have created an inject plugin something similar to the one below in Nuxt.js. I need to write test cases for the same using Jest. How do I access the injected function 'accountBalance' in jest spec file?
export default ({ store }, inject) => {
inject('accountBalance', () => {
const accountType = acc => getAccountType(acc, store);
const func2 = acc => getfun(acc, store, true);
return { accountType, func2 };
});
};