povar pro luan

Benchmark created on


Description

luan ta errado

Test runner

Ready to run.

Testing in
TestOps/sec
serjo
const columnsQuantity  = 2
const isThumbnailSmall = columnsQuantity === 2 || columnsQuantity === 6
  const productNameClassName = isThumbnailSmall ? 'tw-text-xs' : 'tw-text-base'
  const productPriceClassName = isThumbnailSmall ? 'tw-text-xs' : 'tw-text-sm'
  const productInstallmentsClassName = isThumbnailSmall
    ? 'tw-text-[10px]'
    : 'tw-text-sm'
ready
luan
const columnsQuantity  = 2
const shouldShowSmallFont = columnsQuantity === 2 || columnsQuantity === 6

  const PRODUCT_CLASS_NAMES = {
    THUMBNAIL_SMALL: {
      name: 'tw-text-xs',
      price: 'tw-text-xs',
      installments: 'tw-text-[10px]',
    },
    THUMBNAIL_NORMAL: {
      name: 'tw-text-base',
      price: 'tw-text-sm',
      installments: 'tw-text-sm',
    },
  }

  const productClassNames = shouldShowSmallFont
    ? PRODUCT_CLASS_NAMES.THUMBNAIL_SMALL
    : PRODUCT_CLASS_NAMES.THUMBNAIL_NORMAL

    const {price, installments, name} = productClassNames
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.