From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:34:21 +0800 Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整 --- PAMapp/node_modules/jest-jasmine2/build/assertionErrorMessage.js | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PAMapp/node_modules/jest-jasmine2/build/assertionErrorMessage.js b/PAMapp/node_modules/jest-jasmine2/build/assertionErrorMessage.js index c5ea9f2..9ec79ee 100644 --- a/PAMapp/node_modules/jest-jasmine2/build/assertionErrorMessage.js +++ b/PAMapp/node_modules/jest-jasmine2/build/assertionErrorMessage.js @@ -106,8 +106,8 @@ if (operatorName === 'doesNotThrow') { return ( buildHintString(assertThrowingMatcherHint(operatorName)) + - _chalk.default.reset(`Expected the function not to throw an error.\n`) + - _chalk.default.reset(`Instead, it threw:\n`) + + _chalk.default.reset('Expected the function not to throw an error.\n') + + _chalk.default.reset('Instead, it threw:\n') + ` ${(0, _jestMatcherUtils.printReceived)(actual)}` + _chalk.default.reset( hasCustomMessage ? '\n\nMessage:\n ' + message : '' @@ -119,8 +119,8 @@ if (operatorName === 'throws') { return ( buildHintString(assertThrowingMatcherHint(operatorName)) + - _chalk.default.reset(`Expected the function to throw an error.\n`) + - _chalk.default.reset(`But it didn't throw anything.`) + + _chalk.default.reset('Expected the function to throw an error.\n') + + _chalk.default.reset("But it didn't throw anything.") + _chalk.default.reset( hasCustomMessage ? '\n\nMessage:\n ' + message : '' ) + @@ -140,7 +140,7 @@ buildHintString(assertMatcherHint(operator, operatorName, expected)) + _chalk.default.reset(`Expected value ${operatorMessage(operator)}`) + ` ${(0, _jestMatcherUtils.printExpected)(expected)}\n` + - _chalk.default.reset(`Received:\n`) + + _chalk.default.reset('Received:\n') + ` ${(0, _jestMatcherUtils.printReceived)(actual)}` + _chalk.default.reset(hasCustomMessage ? '\n\nMessage:\n ' + message : '') + (diffString ? `\n\nDifference:\n\n${diffString}` : '') + -- Gitblit v1.8.0