UNPKG

@wider/utils_proto

Version:

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

49 lines (39 loc) 1.25 kB
'use strict'; /** * A test utility that can be run from node directly to demonstrate selected string functions. * *[Source code](./proto_array_test.js.html) * * Run from this package's main directory * * ```cmd * node ./proto_array/test.js * ... test output ... * ``` * * or * * ```cmd * $ node * Welcome to Node.js * > import("./proto_array/test.js").then(() => {process.exit()}) * Promise { pending } * > ... test output ... * $ * ``` * * @module @wider/utils_proto/proto_array/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 assignArray from "./index.js"; assignArray(Array); const m_moduleName = assignArray.$moduleName + "/test"; const m_title = m_moduleName + " demonstration"; console.log(m_title + ": starting test for "); // create your test run here with or without express is appropriate console.log(m_moduleName + ": test complete for " + m_title);