containsSelector(selector, vTree)

src/index.js

Assert whether a particular selector is contained in a vTree

Parameters

  • string selector :

    the css selector to try and find

  • vNode vTree :

    the vNode to test (can contain streams/observables)

Returns

Promise :

promise resolves with an array of all of the matched vNodes, or rejects if the selector can not be found.

containsVNode(actual, expected)

src/index.js

Assert whether or not a vTree contains a specific vNode

Parameters

  • vNode actual :

    the actual vNode you'd like to test (can hold streams/observables)

  • vNode expected :

    the expected vNode structure

Returns

Promise :

promise resolves with an object containing the actual and expected values if the expected value is contained in the actual value, or rejects if there is no match

identical(actual, expected)

src/index.js

Assert whether or not to vTrees are identical

Parameters

  • vNode actual :

    the actual vNode you'd like to test (can hold streams/observables)

  • vNode expected :

    the expected vNode structure

Returns

Promise :

promise resolves with an object containing the actual and expected values if there is a match, or rejects if the vNodes do not match