pixelnode/node_modules/quick-local-ip/test.js

19 lines
662 B
JavaScript
Raw Normal View History

2018-04-04 12:31:55 +02:00
/**
* Created by alokguha on 25/09/15.
*/
var network = require('./index');
var assert = require("assert");
describe('MyIp Tests', function() {
//Undefined Test
describe('Undefined Test', function () {
it('variable network should not be undefined', function () {
assert.notEqual(network,undefined);
});
it('variable network.getLocalIP4 should not be undefined', function () {
assert.notEqual(network.getLocalIP4(),undefined);
});
it('variable network.getLocalIP6 should not be undefined', function () {
assert.notEqual(network.getLocalIP6(),undefined);
});
});
});