fabasoad/business-card

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

Summary

Maintainability
B
5 hrs
Test Coverage
A
100%

Function testPortfolioMain has 110 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function testPortfolioMain(div: HTMLDivElement) {
  const fixture = new Map<string, PortfolioMainFixture>([
    ['Markets', {
      url: 'https://markets.bitcoin.com/',
      title: 'business-card-portfolio-markets-title',
Severity: Major
Found in src/__tests__/components/Portfolio/TestUtils.ts - About 4 hrs to fix

    Function testPortfolioItem has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      div: HTMLDivElement,
      url: string,
      name: string,
      title: string,
      subtitle: string,
    Severity: Minor
    Found in src/__tests__/components/Portfolio/TestUtils.ts - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status