Files
  • index.js
  • doSomething.js
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 v9.7.1 linux/amd64