From 0318d9061705b44782f1a53f303dff045abd68d0 Mon Sep 17 00:00:00 2001 From: Andreas Moog Date: Sat, 12 May 2018 17:23:56 +0200 Subject: [PATCH] Newer mocha versions require a description for tests, so make sure we always include one. --- test/api-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api-test.js b/test/api-test.js index 2e390f9..5f7f026 100644 --- a/test/api-test.js +++ b/test/api-test.js @@ -360,7 +360,7 @@ describe('IP library for node.js', function() { describe('private', function() { [ undefined, 'ipv4', 'ipv6' ].forEach(function(family) { - describe(family, function() { + describe(family || 'undefined', function() { it('should respond with a private ip', function() { assert.ok(ip.isPrivate(ip.address('private', family))); }); @@ -373,7 +373,7 @@ describe('IP library for node.js', function() { Object.keys(interfaces).forEach(function(nic) { describe(nic, function() { [ undefined, 'ipv4' ].forEach(function(family) { - describe(family, function() { + describe(family || 'undefined', function() { it('should respond with an ipv4 address', function() { var addr = ip.address(nic, family); assert.ok(!addr || net.isIPv4(addr));