{"_id":"chai-jquery","_rev":"42-ff0134cfafb9498c8147eb653d7696ba","name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"1.0.0","repository":{"type":"git","url":"git://github.com/chaijs/chai-jquery.git"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":">= 1.0.0","mocha":">= 1.0.0"},"_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"_id":"chai-jquery@1.0.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"51240099166aa492a8b545bbf8573b1c4d07da60","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-1.0.0.tgz","integrity":"sha512-ibN7Fem47Cwq0xWYmAt4iHPe1jubL2kacKlQHtp/lay6oyUNWcd/cakLaGcrS0pvDqQp39Fnyh/epaxY5PDecA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHt4TiBSlSu6PgtCJPdrgKE3BHgRlwd6gkED9vtleqV7AiAtdQxwIk0V89ekbMHBDMWuaVX1r1XwUDoYXN6IqVOACA=="}]},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"}],"directories":{}},"1.1.0":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"1.1.0","repository":{"type":"git","url":"git://github.com/chaijs/chai-jquery.git"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":">= 1.0.0","mocha":">= 1.0.0"},"_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"_id":"chai-jquery@1.1.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.8.4","_defaultsLoaded":true,"dist":{"shasum":"565af131e2334d636a26e53032669426d092c7a4","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-1.1.0.tgz","integrity":"sha512-cQD/S97AXZ94XFd11csbmCqC/mKZynxdU/ozQPATCioSr63ehyomn7Hw68ILNWiwVUkr6Kp4Mg+ekPRkcq0/jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIESGR8sz8qbrnHdnI7sXx1jNI9FnGFsdaFsH5qPvThJvAiBtNj9VAsTAKLuidy35NZ92OGoqZGwB21Wo3prp/24DKA=="}]},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"}],"directories":{}},"1.1.1":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"1.1.1","repository":{"type":"git","url":"https://github.com/chaijs/chai-jquery"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":">= 1.0.0","mocha":">= 1.0.0"},"_id":"chai-jquery@1.1.1","dist":{"shasum":"a06e1494fdd81ccf1ffa9a783da352641a32850e","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-1.1.1.tgz","integrity":"sha512-e5Ee2wQIzqRkBKLOG3AmRC/t2EJCRjD+qB2KyRLDcvCX98MfCpruDdk9WCPyFXKN4ZulQMTUBtu28Z8UjiqRxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQmvlAYXA+050lLPFyS30ogRjvF0G+Hs8atcQSx1mM0AiADCMCp1LYFEWFdWzke/IzGlDo9KTzZGm2C9rwgxHkhYA=="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"}],"directories":{}},"1.1.2":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"1.1.2","repository":{"type":"git","url":"https://github.com/chaijs/chai-jquery"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":">= 1.0.0","mocha":">= 1.0.0"},"_id":"chai-jquery@1.1.2","dist":{"shasum":"8a1c9e440cc342a129699744898c5d19d6dc3731","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-1.1.2.tgz","integrity":"sha512-U4xVPAUe6LLoioNbvQfd7CrRsS42cbNJR7fkwdoEyFypOMNsgMjP1P51Nwkwfk+kwNIGorSRdMfuQUH0fCUfPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEpWZXDGZSg2W5c17MkKEkRJ+QuOTXZam2F5XwtIsS9wIhAOg/rjQzg3VHpORRnbQrxQ85SrvrWLwG0uNsokNife+x"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"domenic","email":"domenic@domenicdenicola.com"}],"directories":{}},"1.2.0":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"1.2.0","repository":{"type":"git","url":"https://github.com/chaijs/chai-jquery"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":">= 1.0.0","mocha":">= 1.0.0"},"homepage":"https://github.com/chaijs/chai-jquery","_id":"chai-jquery@1.2.0","dist":{"shasum":"a1f1fab7e8abd0c739b284bf524a2dd18005e9b1","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-1.2.0.tgz","integrity":"sha512-k/Gabi/OAjhsfTPqZZS365kPv+q0Sd8MLxlxoyw/B0pt+dYaORqq6JwfMxE61m3HzorEOV3OtyOtyZxOzB9T+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqrIcMeXmvSpFAQjgVmB2X6H445BDXQASDqu+lwQujVAiEA4ltvbwUCwxfDXQDrETAIGFP+maHqPTHyLry+1oosjyY="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"domenic","email":"domenic@domenicdenicola.com"}],"directories":{}},"1.2.1":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"1.2.1","repository":{"type":"git","url":"https://github.com/chaijs/chai-jquery"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"scripts":{"test":"mocha-phantomjs test/index.html"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":"1","mocha":"1","mocha-phantomjs":"3","jquery":"2"},"_id":"chai-jquery@1.2.1","dist":{"shasum":"97ad39ad54c296c397fb4d43f95452e926f60c5f","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-1.2.1.tgz","integrity":"sha512-Cpu0btFJwglsueSiSBOW54ZqzHkLwzWFO6Oae0xJEfnDQScdGjoGpzzHAUbONSklawfGLXyHDXOtfCujZ1/Bug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPSSszseO9/jltNTzFY7gtXhZt38Lvu2/POPNAmD/jfwIgCel3MhdHZhggizJOEJcGR4FQtBL71FslNWgQDF57goI="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"domenic","email":"domenic@domenicdenicola.com"}],"directories":{}},"1.2.2":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"1.2.2","repository":{"type":"git","url":"https://github.com/chaijs/chai-jquery"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"scripts":{"test":"mocha-phantomjs test/index.html"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":"1","mocha":"1","mocha-phantomjs":"3","jquery":"2"},"_id":"chai-jquery@1.2.2","dist":{"shasum":"a7426109a2ce309b5eaa2d861665d05801e4dea1","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-1.2.2.tgz","integrity":"sha512-kfPOOaaMimDtt4RydqEDH8AgGDWPNUKLSSSDhUWrn9miFsplBnJ6HrpjjIj7B4qv75CL4WAwjp0RUIWBYk+BQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQ+WBYDOnDppR3iFnfGWXA15mZMNdHwUPZnvCf3j+J+AiAxZOHqgEB/83vZt5s7YXnNA9+CgnW6NpjImHBMMNomsg=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"domenic","email":"domenic@domenicdenicola.com"}],"directories":{}},"1.2.3":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"1.2.3","repository":{"type":"git","url":"https://github.com/chaijs/chai-jquery"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"scripts":{"test":"mocha-phantomjs test/index.html"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":"1","mocha":"1","mocha-phantomjs":"3","jquery":"2.1.0"},"_id":"chai-jquery@1.2.3","dist":{"shasum":"4ea29c5a25b13ec4cd2f5ec298cb44164b5a70b7","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-1.2.3.tgz","integrity":"sha512-CBe22wrW/bykFnQQJD5ZRJqBicDsZ4ZghPX4OKKXPLGt4gX4DlDlwROFcw/3CEYSJZG2zZGPM4BMJSX1H4Ltug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIwXC1xjwV6rW534kZzyD31rmViLg9rd7+jgr3pnzfQwIhAOTzcnOGHmLcEtkm7eOIW9Fo9SMvWKEECg7ovBIm2nzy"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"domenic","email":"domenic@domenicdenicola.com"}],"directories":{}},"2.0.0":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["test","assertion","assert","testing","jQuery"],"version":"2.0.0","repository":{"type":"git","url":"https://github.com/chaijs/chai-jquery"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"scripts":{"test":"mocha-phantomjs test/index.html"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":"1","mocha":"1","mocha-phantomjs":"3","jquery":"2.1.0"},"_id":"chai-jquery@2.0.0","dist":{"shasum":"0f43042308dd746332bd98164aaef4a4f45ba167","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-2.0.0.tgz","integrity":"sha512-UWiTuChZ1vFLLX0s8UN49mOBaok7b3Gse9AdOs2CCRNwd6a2hmQOll+LrOATbyOYNRLQHoiAqAjXKEEWVYnG6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAlZn50cdnQ5OhR9V8lnOodGnrylydJegP3o1tTTVQyrAiB5x27ypKJQw7DMMjOhtk2zP2x1KWMeKUyQJInx5L4iLg=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},"maintainers":[{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"domenic","email":"domenic@domenicdenicola.com"}],"directories":{}},"2.1.0":{"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"name":"chai-jquery","description":"jQuery assertions for the Chai assertion library","keywords":["chai","chai-plugin","vendor","browser-only","dom","test","assertion","assert","testing","jQuery"],"version":"2.1.0","repository":{"type":"git","url":"git+https://github.com/chaijs/chai-jquery.git"},"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"scripts":{"test":"mocha-phantomjs test/index.html"},"main":"./chai-jquery","engines":{"node":">= 0.4.0"},"devDependencies":{"chai":"4","mocha":"1","mocha-phantomjs":"3","jquery":"2.1.0"},"gitHead":"53cf5d023f4ac74f7e815a086a01828d2b059798","homepage":"https://github.com/chaijs/chai-jquery#readme","_id":"chai-jquery@2.1.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"chaijs","email":"chaijs@keithcirkel.co.uk"},"dist":{"integrity":"sha512-DiKSXcmInlt4d+WC5PkisDL5MsgJPd1lCSfZ3NgeSZJ34CJntEIpPOCdpalH2IhOWHeLpESJaiuHFxX1dpZ6bw==","shasum":"ce40fb5d853e7886688787f16d14cd9595388563","tarball":"https://registry.npmjs.org/chai-jquery/-/chai-jquery-2.1.0.tgz","fileCount":10,"unpackedSize":45769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5X8BCRA9TVsSAnZWagAACE8P/0+KWLyn6oEI4q7GycwD\n2y51HHqsoM0RTG7Ii79UyGaxzn85Od4gtcOJl7q+Lq4YWsxQSPRNIZgwDwIm\nwjg79V4nlinSUXzI+wzC5PW77rWUzlswh0Xzh28CPcUuATR9MWuCODfG2hrp\nOHqo+6s8ZSv9COuDWhLf4c3qm9LRG/Rir4mvpf3YClsp1z3x735T/ymkycjW\nrwc50xiBaDdeR8qv9VtbtbXXbKuhUqj9BqfJPDPjc50KzXUP3pZVwdqp8wQY\nIkpe5hTpMnx37SEQl95V/I4gfFNqh5ssfvz2u2vJg2zsTd9cZSyciiyFuKiG\nQhQKkx1oe8fIsnCWMQ9ilkg7Qo2CctfRni5Rxe2USE9iz5YvpyINmZNEPPX+\nar3iWBl6is0nNlMi2TOHzjLrbDbXeHtW8dNeHW2NCdvz0NN83In5SdUsztrY\nmBjbstRAaoPQNnEgjPi5vSyeYaHJ4qvjqM9cxyfFoG0IKlSkyCQc7u+pIl35\nSpFCqJl2ppBFO8NyF+9Kd8sVh18qYuKXNEzr0FIkzXww9rZ6FCCTEt/gG78A\nux8Zm5ZRgjoU3V6n2kjGJOwCbb9H3e5LwVkU1jAE+0b22gT99LSWFQYPo573\nWCzzjOGSty3rAaXWHGeS2s9/uzUFzZj9v6xv430ZuJYFCTiMsYGLmuVgD7sg\nVG1C\r\n=LBNG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpIga+1bey9/k90I5ZnB4miEM3rqd2fuBxOMX+sZ9biAIhAJoWUkiVGr/Ac9LyTmeuaRVwelEzUdY7EA0EyovSlKUH"}]},"maintainers":[{"email":"chaijs@keithcirkel.co.uk","name":"chaijs"},{"email":"d@domenic.me","name":"domenic"},{"email":"john.firebaugh@gmail.com","name":"jfirebaugh"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chai-jquery_2.1.0_1541766912583_0.35463151152569417"},"_hasShrinkwrap":false}},"readme":"# chai-jquery\n\nchai-jquery is an extension to the [chai](http://chaijs.com/) assertion library that\nprovides a set of jQuery-specific assertions.\n\n## Usage\n\nInclude `chai-jquery.js` in your test file, after `jquery.js` and `chai.js` (version 1.0.0-rc1 or later):\n\n```html\n<script src=\"jquery.js\"></script>\n<script src=\"chai.js\"></script>\n<script src=\"chai-jquery.js\"></script>\n```\n\nNote that `jquery.js` and `chai.js` can be inserted one before another (order does not matter here).\n\nUse the assertions with chai's `expect` or `should` assertions.\n\n## Assertions\n\n### `attr(name[, value])`\nAssert that the first element of the selection has the given attribute, using [`.attr()`](http://api.jquery.com/attr/).\nOptionally, assert a particular value as well. The return value is available for chaining.\n\n```js\n$('#header').should.have.attr('foo');\nexpect($('body')).to.have.attr('foo', 'bar');\nexpect($('body')).to.have.attr('foo').match(/bar/);\n```\n\n### `prop(name[, value])`\nAssert that the first element of the selection has the given property, using [`.prop()`](http://api.jquery.com/prop/).\nOptionally, assert a particular value as well. The return value is available for chaining.\n\n```js\n$('#header').should.have.prop('disabled');\nexpect($('body')).to.have.prop('disabled', false);\nexpect($('body')).to.have.prop('value').match(/bar/);\n```\n\n### `css(name[, value])`\nAssert that the first element of the selection has the given CSS property, using [`.css()`](http://api.jquery.com/css/).\nOptionally, assert the computed value as well. The return value is available for chaining.\n\n```js\n$('#header').should.have.css('background');\nexpect($('body')).to.have.css('background-color', 'rgb(0, 0, 0)');\nexpect($('body')).to.have.css('font-family').match(/sans-serif/);\n```\n\n### `data(name[, value])`\nAssert that the first element of the selection has the given data value, using [`.data()`](http://api.jquery.com/data/).\nOptionally, assert a particular value as well. The return value is available for chaining.\n\n```js\n$('#header').should.have.data('foo');\nexpect($('body')).to.have.data('foo', 'bar');\nexpect($('body')).to.have.data('foo').match(/bar/);\n```\n\n### `class(className)`\nAssert that the first element of the selection has the given class, using [`.hasClass()`](http://api.jquery.com/hasClass/).\n\n```js\n$('#header').should.have.class('foo');\nexpect($('body')).to.have.class('foo');\n```\n\n### `id(id)`\nAssert that the first element of the selection has the given id, using `.attr('id')`.\n\n```js\n$('.header').should.have.id('#main');\nexpect($('body')).to.have.id('foo');\n```\n\n### `html(html)`\nAssert that the html of the first element of the selection is equal to the given html, using [`.html()`](http://api.jquery.com/html/).\n\n```js\n$('.name').should.have.html('<em>John Doe</em>');\nexpect($('#title')).to.have.html('Chai Tea');\n```\n\n### `text(text)`\nAssert that the text of the first element of the selection is equal to the given text, using [`.text()`](http://api.jquery.com/text/).\n\n```js\n$('.name').should.have.text('John Doe');\nexpect($('#title')).to.have.text('Chai Tea');\n```\n\n### `value(value)`\nAssert that the first element of the selection has the given value, using [`.val()`](http://api.jquery.com/val/).\n\n```js\n$('.name').should.have.value('John Doe');\nexpect($('.year')).to.have.value('2012');\n```\n\n### `visible`\nAssert that at least one element of the selection is visible, using [`.is(':visible')`](http://api.jquery.com/:visible/).\n\n```js\n$('.name').should.be.visible;\nexpect($('.year')).to.be.visible;\n```\n\n### `hidden`\nAssert that at least one element of the selection is hidden, using [`.is(':hidden')`](http://api.jquery.com/:hidden/).\n\n```js\n$('.name').should.be.hidden;\nexpect($('.year')).to.be.hidden;\n```\n\n### `selected`\nAssert that at least one element of the selection is selected, using [`.is(':selected')`](http://api.jquery.com/:selected/).\n\n```js\n$('option').should.be.selected;\nexpect($('option')).not.to.be.selected;\n```\n\n### `checked`\nAssert that at least one element of the selection is checked, using [`.is(':checked')`](http://api.jquery.com/:checked/).\n\n```js\n$('.checked').should.be.checked;\nexpect($('input')).not.to.be.checked;\n```\n\n### `enabled`\nAssert that at least one element of the selection is enabled, using [`.is(':enabled')`](http://api.jquery.com/:enabled/).\n\n```js\n$('.enabled').should.be.enabled;\nexpect($('enabled')).to.be.enabled;\n```\n\n### `disabled`\nAssert that at least one element of the selection is disabled, using [`.is(':disabled')`](http://api.jquery.com/:disabled/).\n\n```js\n$('.disabled').should.be.disabled;\nexpect($('input')).not.to.be.disabled;\n```\n\n### `empty`\nAssert that at least one element of the selection is empty, using [`.is(':empty')`](http://api.jquery.com/empty-selector/).\nIf the object asserted against is not a jQuery object, the original implementation will be called.\n\n```js\n$('.empty').should.be.empty;\nexpect($('body')).not.to.be.empty;\n```\n\n### `exist`\nAssert that the selection is not empty. Note that this overrides the built-in chai assertion. If the object asserted\nagainst is not a jQuery object, the original implementation will be called.\n\n```js\n$('#exists').should.exist;\nexpect($('#nonexistent')).not.to.exist;\n```\n\n### `match(selector)`\nAssert that the selection matches a given selector, using [`.is()`](http://api.jquery.com/is/). Note that this overrides\nthe built-in chai assertion. If the object asserted against is not a jQuery object, the original implementation will be called.\n\n```js\n$('input').should.match('#foo');\nexpect($('#empty')).to.match(':empty');\n```\n\n### `contain(text)`\nAssert that the selection contains the given text, using [`:contains()`](http://api.jquery.com/contains-selector/).\nIf the object asserted against is not a jQuery object, or if `contain` is not called as a function, the original\nimplementation will be called.\n\n```js\n$('body').should.contain('text');\nexpect($('#content')).to.contain('text');\n```\n\n### `descendants(selector)`\nAssert that the selection contains at least one element which has a descendant matching the given selector,\nusing [`.has()`](http://api.jquery.com/has/).\n\n```js\n$('body').should.have.descendants('h1');\nexpect($('#content')).to.have.descendants('div');\n```\n\n### `focus()`\nAssert that at least one element of the selection is visible. Note that this assertion does not use [`.is(':focus')`](http://api.jquery.com/:focus/).\nIt rather uses `$('.element').get(0) === document.activeElement`, because of [incompatibility of .is(':focus') in certain webkit browsers](https://github.com/ariya/phantomjs/issues/10427).\n\n```js\n$('#focused').should.have.focus();\nexpect($('#nonfocused')).not.have.focus();\n```\n\n## Contributing\n\nTo run the test suite, run `npm install` (requires\n[Node.js](http://nodejs.org/) to be installed on your system), and open\n`test/index.html` in your web browser.\n\n## License\n\nCopyright (c) 2012 John Firebaugh\n\nMIT License (see the LICENSE file)\n","maintainers":[{"email":"chaijs@keithcirkel.co.uk","name":"chaijs"}],"time":{"modified":"2024-05-09T08:51:15.575Z","created":"2012-05-31T01:51:19.525Z","1.0.0":"2012-05-31T01:51:20.864Z","1.1.0":"2012-08-24T22:01:21.227Z","1.1.1":"2012-12-27T00:04:57.868Z","1.1.2":"2013-09-26T15:03:27.623Z","1.2.0":"2013-12-30T17:24:44.757Z","1.2.1":"2014-01-22T16:02:23.857Z","1.2.2":"2014-05-21T15:12:37.607Z","1.2.3":"2014-06-03T05:01:10.562Z","2.0.0":"2014-10-11T21:51:03.703Z","2.1.0":"2018-11-09T12:35:12.765Z"},"author":{"name":"John Firebaugh","email":"john.firebaugh@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/chaijs/chai-jquery.git"},"readmeFilename":"README.md","keywords":["chai","chai-plugin","vendor","browser-only","dom","test","assertion","assert","testing","jQuery"],"bugs":{"url":"https://github.com/chaijs/chai-jquery/issues"},"users":{"leonardorb":true,"asm2hex":true,"abhijitkalta":true,"omkar.sheral.1989":true},"homepage":"https://github.com/chaijs/chai-jquery#readme"}