fabasoad/business-card

View on GitHub
src/__tests__/components/Education/TestUtils.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
98%

Function testEducationMain has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function testEducationMain(div: HTMLDivElement, locale: Locale) {
  const from = 2005
  const to = 2010
  expect(div).toHaveClass('light-component')
  const divContainer = div.querySelector('div.container')
Severity: Minor
Found in src/__tests__/components/Education/TestUtils.ts - About 1 hr to fix

    Function testEducationItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      container: HTMLElement,
      from: number,
      to: number,
      title: string,
      testHeading: TestHeadingFunction = (h4: HTMLHeadingElement) =>
    Severity: Minor
    Found in src/__tests__/components/Education/TestUtils.ts - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status