All files / molecule/breadcrumb/src settings.js

80% Statements 4/5
100% Branches 0/0
50% Functions 1/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16    1x   1x 6x                 1x  
import cx from 'classnames'
 
export const BASE_CLASS = 'sui-BreadcrumbBasic'
 
export const breadcrumbClassName = ({isExpanded, isScrollable, className}) =>
  cx(
    BASE_CLASS,
    {
      'is-expanded': isExpanded,
      'is-scrollable': isScrollable
    },
    className
  )
 
export const isFunction = fn => typeof fn === 'function'