nathanboktae / chai-dom

DOM assertions for the Chai assertion library using vanilla JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asserting checkbox checked state?

lolmaus opened this issue · comments

Currently doing this:

expect(checkbox.checked).to.be.true;

I believe, it would read much better as:

expect(checkbox).to.be.checked;

CC @simonihmig

I like it - I'll accept a PR for the feature!

Can you please provide some guidance?

See #53 - prime example of adding a new assertion with documentation and tests.

@nathanboktae Thanks! Are you gonna release it?