* 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)
| 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', () => { |