Skip to content

Commit

Permalink
feat(cb2-6980): update text inside crc document (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
naathanbrown authored Dec 9, 2022
1 parent 3f94720 commit 51399fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/fileConvert/fileConvert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export const configureEvlFile = async (
logger.info('Written csv file');

const md5sum = md5(csvData);
fs.writeFileSync(workingDir + textFilename, md5sum);
const md5string = 'MD5 (' + csvFilename + ') = ' + md5sum;
fs.writeFileSync(workingDir + textFilename, md5string);
logger.info('Written txt checksum file');

await tar.c({ gzip: true, file: archiveName, cwd: workingDir }, [
Expand Down
2 changes: 1 addition & 1 deletion tests/fileConvert/fileConvert.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('test the file config', () => {
await configureEvlFile('', buffer, 'EVL_GVT_20220621.csv');
const csvFile = fs.readFileSync(csvFilename);
const textFile = fs.readFileSync(txtFilename);
const hash = md5(csvFile);
const hash = 'MD5 (EVL_GVT_20220621.csv) = ' + md5(csvFile);
expect(textFile.toString()).toBe(hash);
});
});
Expand Down

0 comments on commit 51399fc

Please sign in to comment.