Skip to content

Commit 46ad629

Browse files
authored
Docs: Fix incomplete propEqual() example
Follows-up 9ab52be, in which I made a small last-minute change after having reviewed the diff last, and in that change I caused some copy-paste mistakes behind.
1 parent 84a7e87 commit 46ad629

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/assert/notPropEqual.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ QUnit.test( "example", assert => {
4343
}
4444

4545
const foo = new Foo();
46-
const expected = ;
4746

4847
// succeeds, only own property values are compared (using strict equality),
4948
// and propery "x" is indeed not equal (string instead of number).

docs/assert/propEqual.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@ QUnit.test( "example", assert => {
4343
}
4444

4545
const foo = new Foo();
46-
const expected = {
47-
x: 1,
48-
y: 2
49-
};
5046

5147
// succeeds, own properties are strictly equal,
5248
// and inherited properties (such as which object constructor) are ignored.
53-
assert.propEqual( foo, );
49+
assert.propEqual( foo, {
50+
x: 1,
51+
y: 2
52+
} );
5453
});
5554
```
5655

0 commit comments

Comments
 (0)