]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: do not test for inferred names in getFnName unit test
authorDaniel Ruf <daniel@daniel-ruf.de>
Mon, 26 Feb 2018 21:53:38 +0000 (22:53 +0100)
committerDaniel Ruf <daniel@daniel-ruf.de>
Mon, 26 Feb 2018 21:53:38 +0000 (22:53 +0100)
test/javascript/util/core.js

index d69d7d57851bba5ea2d0b2f6dbee659379f45002..d4a8b921337817b03c1153db9bc89b5d0a9dbafa 100644 (file)
@@ -92,9 +92,8 @@ describe('Foundation core', function() {
       name.should.be.equal('A');
     });
 
-    it('should handle a function expression', function() {
-      var B = function(){}; 
-      var name = Foundation.getFnName(B);
+    it('should handle an anonymouse function expression', function() {
+      var name = Foundation.getFnName(function(){});
 
       name.should.be.a('string');
       name.should.be.equal('');