☕️ Classic, reliable, trusted test framework for Node.js and the browser
Use userland assertion library in code examples (#18)
David da Silvaf3aaeb720d04
diff --git a/index.md b/index.mdindex 9eee6ab8..d8f19c9f 100644--- a/index.md+++ b/index.md@@ -90,7 +90,7 @@ $ $EDITOR test/test.jsIn your editor:```js-var assert = require('assert');+var assert = require('chai').assert;describe('Array', function() {describe('#indexOf()', function () {it('should return -1 when the value is not present', function () {@@ -381,7 +381,7 @@ Given Mocha's use of `Function.prototype.call` and function expressions to definTake the following example:```js-var assert = require('assert');+var assert = require('chai').assert;function add() {return Array.prototype.slice.call(arguments).reduce(function(prev, curr) {@@ -721,7 +721,7 @@ The `require` interface allows you to require the `describe` and friend words divar testCase = require('mocha').describe;var pre = require('mocha').before;var assertions = require('mocha').it;-var assert = require('assert');+var assert = require('chai').assert;testCase('Array', function() {pre(function() {