From 94cb047ab826e86564e4ff39ec1908c78fa46416 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Wed, 19 Sep 2018 00:17:28 +0530 Subject: [PATCH] Update assert failure messages --- .../prototype/format/this-value-not-numberformat.js | 2 +- .../prototype/formatToParts/this-value-not-numberformat.js | 2 +- .../prototype/resolvedOptions/this-value-not-numberformat.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/intl402/NumberFormat/prototype/format/this-value-not-numberformat.js b/test/intl402/NumberFormat/prototype/format/this-value-not-numberformat.js index 50e9c2ac07..3e7cb30772 100644 --- a/test/intl402/NumberFormat/prototype/format/this-value-not-numberformat.js +++ b/test/intl402/NumberFormat/prototype/format/this-value-not-numberformat.js @@ -16,6 +16,6 @@ invalidTargets.forEach(target => { assert.throws( TypeError, () => fn.call(target), - `Calling format getter on ${target} was not rejected.` + `Calling format getter on ${target} should throw a TypeError.` ); }); diff --git a/test/intl402/NumberFormat/prototype/formatToParts/this-value-not-numberformat.js b/test/intl402/NumberFormat/prototype/formatToParts/this-value-not-numberformat.js index 2bba25c1f7..3e095893ea 100644 --- a/test/intl402/NumberFormat/prototype/formatToParts/this-value-not-numberformat.js +++ b/test/intl402/NumberFormat/prototype/formatToParts/this-value-not-numberformat.js @@ -16,6 +16,6 @@ invalidTargets.forEach(target => { assert.throws( TypeError, () => fn.call(target), - `Calling formatToParts on ${target} was not rejected.` + `Calling formatToParts on ${target} should throw a TypeError.` ); }); diff --git a/test/intl402/NumberFormat/prototype/resolvedOptions/this-value-not-numberformat.js b/test/intl402/NumberFormat/prototype/resolvedOptions/this-value-not-numberformat.js index bed737badd..28f41cf54c 100644 --- a/test/intl402/NumberFormat/prototype/resolvedOptions/this-value-not-numberformat.js +++ b/test/intl402/NumberFormat/prototype/resolvedOptions/this-value-not-numberformat.js @@ -16,6 +16,6 @@ invalidTargets.forEach(target => { assert.throws( TypeError, () => fn.call(target), - `Calling resolvedOptions on ${target} was not rejected.` + `Calling resolvedOptions on ${target} should throw a TypeError.` ); });