'use strict';

var utils = require('../../').utils;
var assert = require('chai').assert;

suite('Utils', () => {
  test('create a random hex string', () => {
    const test1 = utils.getRandomHexString();
    assert.isString(test1);
    assert.equal(test1, test1.match(/^[0-9A-F]{8}$/)[0]);

    const test2 = utils.getRandomHexString(16);
    assert.isString(test2);
    assert.equal(test2, test2.match(/^[0-9A-F]{16}$/)[0]);
  });
});

@@ -424,13 +424,289 @@
 );%0A  %7D);
+%0A%0A  test('getting host ips', () =%3E %7B%0A    const hostIPs = utils.getHostIPs();%0A    assert.isArray(hostIPs);%0A    hostIPs.forEach((ip) =%3E %7B%0A      assert.isString(ip, 'IPs are given as');%0A      assert.isTrue(ip.indexOf('.') %3E= 0 %7C%7C ip.indexOf(':') %3E= 0, 'IP format');%0A    %7D);%0A  %7D);
 %0A%7D);%0A

Enhance test coverage of util helpers