loading
index.js
1
2
3
4
5
6
7
const assert = require('assert');
const { doSomething } = require('./doSomething.js')

const actual = typeof doSomething;
assert(actual === "function", `Expected ${actual} to be "function"`);
console.log('Test Passed')
node v10.16.0