Opetushallitus/eperusteet-frontend-utils

View on GitHub
vue/src/utils/jestutils.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function mockEditointiStore has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function mockEditointiStore<T>(config: Partial<IEditoitava> = {}) {
  const editointi = {
    acquire: jest.fn(async () => {
      const vanhentuu = new Date();
      vanhentuu.setMinutes(vanhentuu.getMinutes() + 10);
Severity: Minor
Found in vue/src/utils/jestutils.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status