vue/src/utils/jestutils.ts
Function mockEditointiStore
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function mockEditointiStore<T>(config: Partial<IEditoitava> = {}) {
const editointi = {
acquire: jest.fn(async () => {
const vanhentuu = new Date();
vanhentuu.setMinutes(vanhentuu.getMinutes() + 10);