Skip to content

armgit / mocha

Public Imported from GitHub
0

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

update parameter order of example assert [ci skip]

Lane Kelly9695be658a59
diff --git a/docs/index.md b/docs/index.md
index 41b6a3da..b4535960 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -108,7 +108,7 @@ var assert = require('assert');
describe('Array', function() {
describe('#indexOf()', function() {
it('should return -1 when the value is not present', function() {
- assert.equal(-1, [1,2,3].indexOf(4));
+ assert.equal([1,2,3].indexOf(4), -1);
});
});
});