doc: fix `notDeepEqual` API

API calls in `assert` are `deepEqual()`, not `notDeepEqual()`.
use `notDeepEqual` to make it clear.

PR-URL: https://github.com/nodejs/node/pull/4971
Reviewed-By: Rich Trott <rtrott@gmail.com>
pull/4971/merge
Minwoo Jung 2016-01-31 00:47:14 +09:00 committed by JungMinu
parent bdd37e1fac
commit de3e94b0ef
1 changed files with 8 additions and 8 deletions

View File

@ -236,16 +236,16 @@ const obj3 = {
}
const obj4 = Object.create(obj1);
assert.deepEqual(obj1, obj1);
AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
assert.deepEqual(obj1, obj2);
// OK, obj1 and obj2 are not deeply equal
assert.deepEqual(obj1, obj3);
assert.notDeepEqual(obj1, obj1);
// AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
assert.deepEqual(obj1, obj4);
assert.notDeepEqual(obj1, obj2);
// OK, obj1 and obj2 are not deeply equal
assert.notDeepEqual(obj1, obj3);
// AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
assert.notDeepEqual(obj1, obj4);
// OK, obj1 and obj2 are not deeply equal
```