From 8ee1d8d10e5c407beeced02d0580193bb8f30bc1 Mon Sep 17 00:00:00 2001 From: Kyle Zhang Date: Fri, 31 May 2019 00:23:48 +0800 Subject: [PATCH] doc: fix the wrong name of AssertionError err.name of AssertionError should be 'AssertionError' --- doc/api/assert.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index 0a7d35f105e48e..22383a16b62d14 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -68,7 +68,7 @@ try { } catch (err) { assert(err instanceof assert.AssertionError); assert.strictEqual(err.message, message); - assert.strictEqual(err.name, 'AssertionError [ERR_ASSERTION]'); + assert.strictEqual(err.name, 'AssertionError'); assert.strictEqual(err.actual, 1); assert.strictEqual(err.expected, 2); assert.strictEqual(err.code, 'ERR_ASSERTION');