MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / verifyArtifactList

Function verifyArtifactList

packages/cli/test/unit/utils.unit.js:414–420  ·  view source on GitHub ↗

* Testing function for evaluating the lists returned from * the getArtifactList function. * * @param {string} artifactType The artifact type under test * @param {string} folder The name of the folder (usually the plural of the * artifactType) * @param {boolean} suffix W

(artifactType, folder, suffix, files)

Source from the content-addressed store, hash-verified

412 * @param {string[]} files An array of fake filepaths to test with
413 */
414 async function verifyArtifactList(artifactType, folder, suffix, files) {
415 const reader = () => {
416 return files;
417 };
418 const artifactPath = path.join('tmp', 'app', folder);
419 return utils.getArtifactList(artifactPath, artifactType, suffix, reader);
420 }
421 });
422
423 describe('validateStringObject', () => {

Callers 1

utils.unit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected