diff --git a/binding/javascript/tests/ip.test.js b/binding/javascript/tests/ip.test.js index 2e78433..66f43c0 100644 --- a/binding/javascript/tests/ip.test.js +++ b/binding/javascript/tests/ip.test.js @@ -23,8 +23,8 @@ test('parse ip address', () => { return; } - let to_Str = ipBytes == null ? '0' : util.ipToString(ipBytes, true); - let toByte = ipBytes == null ? '0' : util.ipBytesString(ipBytes); + let to_Str = util.ipToString(ipBytes, true); + let toByte = util.ipBytesString(ipBytes); console.log(`parseIP(${ipString}): {Bytes: ${toByte}, String: ${to_Str}}`); expect(ipString).toBe(to_Str); });