UNPKG

@wider/utils_proto

Version:

A set of extensions to basic objects giving uniform behaviour in various technical environments

46 lines (40 loc) 1.34 kB
'use strict'; /** * A test module for the prototype extender for the javascript {Function} object. * const ydr = { item1 : require("item1"), etc }; * *[Source code](./proto_function_test.js.html) * * Run from this package's main directory * * ```cmd * node ./proto_function/test.js * ... test output ... * ``` * * or * * ```cmd * $ node * Welcome to Node.js * > import("./proto_function/test.js").then(() => {process.exit()}) * Promise { pending } * > ... test output ... * $ * ``` * * @module @wider/utils_proto/proto_function/test * * @copyright Copyright (C) 1985..2021 Martin Baker. http://y-d-r.co.uk * @author Martin W Baker * @license ISC Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import assignFunction from "./index.js"; assignFunction(); const m_moduleName = assignFunction.$moduleName + "/test"; const m_title = m_moduleName + " demonstration"; console.log(m_title + ": starting test for "); console.log(m_moduleName + ": wider_describe - of itself: " + Function.prototype.wider_describe.wider_describe()); console.log(m_moduleName + ": test complete for " + m_title);