Bookmarks tagged [chai]
https://zaiste.net/modern_node_js_async_await_based_testing_with_mocha_chai/
Mocha is a JavaScript test framework running on Node.js and in the browser. It can run both asynchronous and synchronous code serially. Test cases are created using describe() and it() methods, the fo...
- 📆 published on: 2017-04-09
- tags: mocha, chai, testing
- source code
https://github.com/domenic/chai-as-promised
Extends Chai with assertions about promises. Contribute to domenic/chai-as-promised development by creating an account on GitHub.
- tags: chai, promise, testing
- source code
https://engineering.invisionapp.com/post/express-integration-testing-supertest/
Put down that REST Client (or, gasp, the browser!) you’re using to test that API you’re developing and back away slowly! There’s a better way! With SuperTest there’s no need to verify your API by hand...
- 📆 published on: 2016-06-27
- tags: expressjs, integration-testing, supertest, chai
- source code
http://chaijs.com/plugins/sinon-chai/
Sinon–Chai provides a set of custom assertions for using the Sinon.JS spy, stub, and mocking framework with the Chai assertion library. You get all the benefits of Chai with all the powerful tools of ...
- tags: node.js, unit-testing, sinon, chai
- source code
https://www.npmjs.com/package/chai-as-promised
Extends Chai with assertions about promises.
You can write code that expresses what you really mean:
- tags: node.js, chai, unit-testing, promises
- source code
https://gist.github.com/yoavniran/1e3b0162e1545055429e
- tags: node.js, unit-testing, mocha, chai, sinon
Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.
- tags: node.js, testing, unit-testing, chai
- source code