bem-matchers

1.0.2 • Public • Published

BEM-Matchers for Jasmine

Build Status

Set of useful matchers to make your specs more readable.

For now, we have one matcher for you:

expect(block).toHaveMod(modName, [modVal])

Expect that passed block has following modifier.
You can check the modifier value by passing the second argument.

If you will pass a non-BEM entity into expectation, you will get an exception.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i bem-matchers

Weekly Downloads

2

Version

1.0.2

License

none

Last publish

Collaborators

  • just-boris