In your module, you haven't exported anything - so the result of including it will be an empty object. Do:
var wifi = require( "Wifi" ); function MoqBase(){}; MoqBase.prototype.ssid; MoqBase.prototype.startPairing = function () {...} exports = MoqBase;
And then you should be off to a better start. However first, I'd make life simple for yourself by trying it all in one file.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
In your module, you haven't exported anything - so the result of including it will be an empty object. Do:
And then you should be off to a better start. However first, I'd make life simple for yourself by trying it all in one file.