Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-deps / src / string / __tests__ / string.ts
Size: Mime:
import match from '../match'
import pipe from '../../fp/pipe'
import from from '../../util/from'
import className from '../classNames'
import stress from '../../../jest/_stress'

test('className', () => {
  class Eh {}
  expect(
    className(new Eh())
      .split('.')
      .shift()
  ).toEqual('Eh')
})

test('match', () => {
  const _match = pipe(
    match,
    from
  )
  expect(_match(null, 'eh')).toEqual([])
  expect(_match('eh', 'eh')).toEqual(['eh'])
  expect(_match('eh', '')).toEqual([])
  stress(match)
})