jasmine-jquery-matchers

Add a set of custom matchers for HTML and CSS related checks, using jQuery.


License
MIT
Install
bower install jasmine-jquery-matchers#v2.1.1

Documentation

Custom jQuery Matchers for Jasmine and Jest Version Build Status

Adds a set of custom matchers for HTML and CSS related checks, using jQuery.

The matchers provide custom error messages that try to be as helpful as possible, so that when things fail you can quickly pinpoint the problem.

List of matchers

  • toExist
  • toHaveLength
  • toHaveId
  • toHaveClass
  • toHaveTag
  • toHaveAttr
  • toHaveProp
  • toHaveText
  • toHaveData
  • toHaveValue
  • toHaveCss
  • toBeChecked
  • toBeDisabled
  • toBeEmpty
  • toBeHidden
  • toBeSelected
  • toBeVisible
  • toBeFocused
  • toBeInDom
  • toBeMatchedBy
  • toHaveDescendant
  • toHaveDescendantWithText

Packages

Package Version
jasmine-jquery-matchers Version
jest-jquery-matchers Version

Meta

Contributors

License

Copyright (c) 2016 Daniel Perez Alvarez (unindented.org). This is free software, and may be redistributed under the terms specified in the LICENSE file.