Merge pull request #708 from DEV-DIBSTER/main

chore: final fixes
This commit is contained in:
Tweak
2024-09-20 22:18:42 -06:00
committed by GitHub
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -57,6 +57,5 @@ test('Check if JSON file matches the value name', () => {
let fileNameMessage = passed === true ? "File name matches target.RECORD_TYPE." : "File name does not match any target.RECORD_TYPE.";
core.setOutput('fileNameMessage', fileNameMessage);
expect(typeof passed).toBe('boolean'); // Check if the result is a boolean
expect(passed).toBe(true);
});
+2 -2
View File
@@ -7,7 +7,7 @@ function getFileName(file, data) {
// Validate if the file name matches any of the target.RECORD_TYPE values
const recordTypes = Object.values(data.target);
return recordTypes[0].name == fileNameWithoutExt.toLowerCase();
return recordTypes[0].name == fileNameWithoutExt.toLowerCase().split("/")[1];
}
module.exports = getFileName;
module.exports = getFileName;