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    
Size: Mime:
const match = require('../../src/deps/string/match')
const pipe = require('../../src/deps/fp/pipe')
const from = require('../../src/deps/util/from')
const className = require('../../src/deps/string/classNames')
const stress = require('../_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)
})