{"size": 750, "ext": "js", "max_stars_repo_path": "test/plugins/net-operations.test.js", "max_stars_repo_name": "bsa-git/feathers-opcua-server", "max_stars_repo_stars_event_min_datetime": "2021-11-05T12:01:40.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-05T12:01:40.000Z", "max_issues_repo_path": "test/plugins/net-operations.test.js", "max_issues_repo_name": "bsa-git/feathers-opcua-server", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/plugins/net-operations.test.js", "max_forks_repo_name": "bsa-git/feathers-opcua-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.4285714286, "max_line_length": 68, "alphanum_fraction": 0.6266666667}
/* eslint-disable no-unused-vars */
const assert = require('assert');
const app = require('../../src/app');
const port = app.get('port') || 3030;

const {
  startListenPort, 
  stopListenPort,
  getHostname,
  dnsLookup
} = require('../../src/plugins');

const chalk = require('chalk');

const debug = require('debug')('app:net-operations.test');
const isDebug = false;
const isLog = false;

describe('<<=== NetOperations: (net-operations.test) ===>>', () => {

  before(function (done) {
    startListenPort(app, done);
  });

  after(function (done) {
    stopListenPort(done);
  });

  it('DNS - Operations', async () => {
    const hostName = getHostname();
    const dnsInfo = await dnsLookup(hostName);
    debug('dnsInfo', dnsInfo);
  });
});
