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 <[email protected]>
  • Loading branch information
JungMinu authored and rvagg committed Feb 8, 2016
1 parent c9b05da commit 5de3dc5
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 5de3dc5

Please sign in to comment.