Repository URL to install this package:
|
Version:
6.0.4 ▾
|
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)
})