Move hasIPv6 into sysinfo

This commit is contained in:
Girish Ramakrishnan
2019-07-25 11:26:53 -07:00
parent c30ac5f927
commit 6a77a58489
5 changed files with 38 additions and 15 deletions

View File

@@ -79,8 +79,4 @@ describe('config', function () {
done();
});
it('test machine has IPv6 support', function () {
expect(config.hasIPv6()).to.equal(true);
});
});

24
src/test/sysinfo-test.js Normal file
View File

@@ -0,0 +1,24 @@
/* global it:false */
/* global describe:false */
/* global after:false */
/* global before:false */
'use strict';
var config = require('../config.js'),
expect = require('expect.js'),
sysinfo = require('../sysinfo.js');
describe('config', function () {
before(function () {
config._reset();
});
after(function () {
config._reset();
});
it('test machine has IPv6 support', function () {
expect(sysinfo.hasIPv6()).to.equal(true);
});
});