From 46ad629752e67b9261ccfba145dbbe47c7b69a78 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sun, 14 Feb 2021 00:52:44 +0000 Subject: [PATCH] Docs: Fix incomplete propEqual() example Follows-up 9ab52becfdd, 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. --- docs/assert/notPropEqual.md | 1 - docs/assert/propEqual.md | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/assert/notPropEqual.md b/docs/assert/notPropEqual.md index dff4e5c3b..1bc1feb91 100644 --- a/docs/assert/notPropEqual.md +++ b/docs/assert/notPropEqual.md @@ -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). diff --git a/docs/assert/propEqual.md b/docs/assert/propEqual.md index 7a3289597..76a7d2826 100644 --- a/docs/assert/propEqual.md +++ b/docs/assert/propEqual.md @@ -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 + } ); }); ```