packages/nerv/__tests__/export.spec.js

Summary

Maintainability
A
0 mins
Test Coverage
import * as Nerv from '../src'

describe('Should export correct module', () => {
  it('Should export `default` module', () => {
    expect(Nerv['default']).not.toBe(undefined)
  })

  it('should export correct module', () => {
    expect(Nerv.Children).not.toBe(undefined)
    expect(Nerv.Component).not.toBe(undefined)
    expect(Nerv.PureComponent).not.toBe(undefined)
    expect(Nerv.createElement).not.toBe(undefined)
    expect(Nerv.cloneElement).not.toBe(undefined)
    expect(Nerv.options).not.toBe(undefined)
    expect(Nerv.findDOMNode).not.toBe(undefined)
    expect(Nerv.isValidElement).not.toBe(undefined)
    expect(Nerv.unmountComponentAtNode).not.toBe(undefined)
    expect(Nerv.createPortal).not.toBe(undefined)
    expect(Nerv.version).toBe('15.4.2')
  })
})