File: disable-debci-incompatible-test.patch

package info (click to toggle)
node-ip 2.0.1%2B~1.1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: javascript: 851; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 857 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Disable debci incompatible test
Author: Xavier Guimard <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/918252
Forwarded: no
Last-Update: 2022-07-27

--- a/test/api-test.js
+++ b/test/api-test.js
@@ -416,22 +416,6 @@
   });
 
   describe('address() method', () => {
-    describe('undefined', () => {
-      it('should respond with a private ip', () => {
-        assert.ok(ip.isPrivate(ip.address()));
-      });
-    });
-
-    describe('private', () => {
-      [undefined, 'ipv4', 'ipv6'].forEach((family) => {
-        describe(family || 'undefined', () => {
-          it('should respond with a private ip', () => {
-            assert.ok(ip.isPrivate(ip.address('private', family)));
-          });
-        });
-      });
-    });
-
     const interfaces = os.networkInterfaces();
 
     Object.keys(interfaces).forEach((nic) => {