gymnastjs/gymnast

View on GitHub
src/utils/index.spec.tsx

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 3 of 3 total issues

File index.spec.tsx has 327 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { size } from 'lodash'
import defaults from '../defaults'
import {
accumulateOver,
combineSpacing,
Severity: Minor
Found in src/utils/index.spec.tsx - About 3 hrs to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    it('should set padding as is', () => {
    const css = getCSS('paddingLeft', 3, 5)
     
    expect(css).toEqual({
    paddingLeft: 3 * 5,
    Severity: Minor
    Found in src/utils/index.spec.tsx and 1 other location - About 50 mins to fix
    src/utils/index.spec.tsx on lines 200..206

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    it('should set margin as border width', () => {
    const css = getCSS('marginBottom', 2, 4)
     
    expect(css).toEqual({
    borderBottomWidth: 2 * 4,
    Severity: Minor
    Found in src/utils/index.spec.tsx and 1 other location - About 50 mins to fix
    src/utils/index.spec.tsx on lines 192..198
    Category
    Status