nodejs-expect-dot-js/0001-Update-expected-test-values.patch
2020-08-31 10:35:52 +08:00

36 lines
1.1 KiB
Diff

From 4530bd14e6cf7be1048a5dca98cf7611fd50263e Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Mon, 5 Dec 2016 15:55:34 -0500
Subject: [PATCH] Update expected test values
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
test/expect.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/expect.js b/test/expect.js
index f89563d3624af0cd1daf071122c15fadfa2a5225..97628208fae8c53e8c37ad6250526e5f1e09f883 100644
--- a/test/expect.js
+++ b/test/expect.js
@@ -147,15 +147,15 @@ describe('expect', function () {
expect(5).to.throwException();
}, 'expected 5 to be a function');
err(function () {
expect(anonItThrows).not.to.throwException();
- }, 'expected fn not to throw an exception');
+ }, 'expected anonItThrows not to throw an exception');
err(function () {
expect(anonItWorks).to.throwException();
- }, 'expected fn to throw an exception');
+ }, 'expected anonItWorks to throw an exception');
if (nameSupported) {
err(function () {
expect(itWorks).to.throwException();
}, 'expected itWorks to throw an exception');
--
2.9.3