mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-30 07:14:39 +08:00
15 lines
340 B
JavaScript
15 lines
340 B
JavaScript
// The Node-test-suite shape: require('./common') resolves to this
|
|
// directory index; members are attached to module.exports one by one.
|
|
'use strict';
|
|
|
|
let calls = 0;
|
|
|
|
/** @param {string} what */
|
|
function record(what) {
|
|
calls += 1;
|
|
return `${what}#${calls}`;
|
|
}
|
|
|
|
module.exports = { record };
|
|
module.exports.GREETING = "hi from common";
|