mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore: update TS and Fastify (#52157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Sboonny <muhammedelruby@gmail.com> Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -47,7 +47,7 @@ describe('external curriculum data build', () => {
|
||||
|
||||
if (result.error) {
|
||||
throw new AssertionError(
|
||||
result.error.toString(),
|
||||
result.error.message,
|
||||
`file: available-superblocks.json`
|
||||
);
|
||||
}
|
||||
@@ -72,7 +72,7 @@ describe('external curriculum data build', () => {
|
||||
|
||||
if (result.error) {
|
||||
throw new AssertionError(
|
||||
result.error.toString(),
|
||||
result.error.message,
|
||||
`file: ${fileInArray}`
|
||||
);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ const readComponentCode = (filePath: string): string => {
|
||||
if (!filePath.endsWith('.js') || filePath.endsWith('.test.js')) {
|
||||
return '';
|
||||
}
|
||||
code += fs.readFileSync(filePath);
|
||||
code += fs.readFileSync(filePath).toString();
|
||||
}
|
||||
return code;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user