@ptkdev/node-module-boilerplate
Version:
Create your npm library with this user friendly boilerplate. Use this respository as template for your new node library/module
20 lines • 641 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Jest Tests
* =====================
*
* @contributors: Patryk Rzucidło [@ptkdev] <support@ptkdev.io> (https://ptk.dev)
*
* @license: MIT License
*
*/
const module_1 = __importDefault(require("../functions/module"));
test("show hello world", async () => {
const { app } = await (0, module_1.default)({ text: "hello-world" });
expect(app()).toBe("hello-world");
});
//# sourceMappingURL=module.test.js.map