Blob Blame History Raw
commit 8f460407ca1402dd77a74e1b85ccf9e0344d231a
Author: Tom Hughes <tom@compton.nu>
Date:   Thu Dec 22 19:47:41 2016 +0000

    Patch tests for changes in Node 6.x
    
    Anonymous functions now get a name from the variable they are assigned to.

diff --git a/test/test.js b/test/test.js
index b8e7f19..ec1e9c1 100644
--- a/test/test.js
+++ b/test/test.js
@@ -10,7 +10,7 @@ it('fn.name', function () {
   assert.equal('someCrazyName', thenify(someCrazyName).name)
 
   var noname = function () {}
-  assert.equal('', thenify(noname).name)
+  assert.equal('noname', thenify(noname).name)
 })
 
 it('fn.name (bound function)', function () {