Skip to content

Commit

Permalink
Docs: Fix incomplete propEqual() example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Krinkle authored Feb 14, 2021
1 parent 84a7e87 commit 46ad629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/assert/notPropEqual.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ QUnit.test( "example", assert => {
}

const foo = new Foo();
const expected = ;

// succeeds, only own property values are compared (using strict equality),
// and propery "x" is indeed not equal (string instead of number).
Expand Down
9 changes: 4 additions & 5 deletions docs/assert/propEqual.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ QUnit.test( "example", assert => {
}

const foo = new Foo();
const expected = {
x: 1,
y: 2
};

// succeeds, own properties are strictly equal,
// and inherited properties (such as which object constructor) are ignored.
assert.propEqual( foo, );
assert.propEqual( foo, {
x: 1,
y: 2
} );
});
```

Expand Down

0 comments on commit 46ad629

Please sign in to comment.