Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

unindented/custom-jquery-matchers

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published