react-jasmine-matchers
Custom matchers for React
Requires ReactTestUtils: https://facebook.github.io/react/docs/test-utils.html
Configuration
var TestUtils = ;var matchers = ;;
Matchers
toBeEl()
Checks if object is element. See TestUtils.isElement()
toBeElOf(Type)
Checks if object is element of Type. See TestUtils.isElementOfType()
toBeDom()
Checks if object is DOM Component. See TestUtils.isDOMComponent()
toBeComp()
Checks if object is Composite Component. See TestUtils.isCompositeComponent()
toBeCompOf(Type)
Checks if object is Composite Component of Type. See TestUtils.isCompositeComponentWithType()
toHaveText(String|RegExp)
Checks if element's DOM node has text
Example
'use strict'; const Button = ; ;