nodejs-should-format/0001-Fix-tests-for-Node.js-6.5.patch

29 lines
750 B
Diff
Raw Normal View History

2020-08-20 11:44:21 +08:00
From 004b6f092c96696dde28027553dc3d6c6e1e894e Mon Sep 17 00:00:00 2001
Date: Tue, 6 Dec 2016 12:30:04 -0500
Subject: [PATCH] Fix tests for Node.js 6.5+
---
tests/test.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test.js b/tests/test.js
index ab2708a34eddef5b7f2091a0f3d6c91974c15b7c..239589ef5a2ceef2224a9bcab951350bac3e70ba 100644
--- a/tests/test.js
+++ b/tests/test.js
@@ -69,11 +69,11 @@ function fff() {
}
it('should format function', function() {
var f = function() {
};
- assert.equal(format(f), 'Function { name: \'\' }');
+ assert.equal(format(f), 'Function { name: \'f\' }');
assert.equal(format(fff), 'Function { name: \'fff\' }');
//TODO add test for arrow function
});
--
2.9.3