Skip to content

Commit

Permalink
doc: fix notDeepEqual API
Browse files Browse the repository at this point in the history
API calls in `assert` are `deepEqual()`, not `notDeepEqual()`.
use `notDeepEqual` to make it clear.

PR-URL: #4971
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
JungMinu committed Jan 31, 2016
1 parent bdd37e1 commit de3e94b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/api/assert.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,16 @@ const obj3 = {
}
const obj4 = Object.create(obj1);

assert.deepEqual(obj1, obj1);
AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
assert.notDeepEqual(obj1, obj1);
// AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }

assert.deepEqual(obj1, obj2);
assert.notDeepEqual(obj1, obj2);
// OK, obj1 and obj2 are not deeply equal

assert.deepEqual(obj1, obj3);
assert.notDeepEqual(obj1, obj3);
// AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }

assert.deepEqual(obj1, obj4);
assert.notDeepEqual(obj1, obj4);
// OK, obj1 and obj2 are not deeply equal
```

Expand Down

0 comments on commit de3e94b

Please sign in to comment.