Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Consistant formatting in examples

Anders Olsen Sandvikfafd99164a9f
diff --git a/index.md b/index.md
index e9a52fa1..d033b52b 100644
--- a/index.md
+++ b/index.md
@@ -169,8 +169,8 @@ In your editor:
```js
var assert = require('chai').assert;
describe('Array', function() {
- describe('#indexOf()', function () {
- it('should return -1 when the value is not present', function () {
+ describe('#indexOf()', function() {
+ it('should return -1 when the value is not present', function() {
assert.equal(-1, [1,2,3].indexOf(5));
assert.equal(-1, [1,2,3].indexOf(0));
});