8000 Add newline at end of generated file content · TezzGit/javascript-exercises@ffe7f14 · GitHub
[go: up one dir, main page]

Skip to content

Commit ffe7f14

Browse files
committed
Add newline at end of generated file content
1 parent 7faf580 commit ffe7f14

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

generators/writeExercise.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ async function writeExercise(exercisePath) {
1010
};
1111
1212
// Do not edit below this line
13-
module.exports = ${exerciseName};`;
13+
module.exports = ${exerciseName};
14+
`;
1415

1516
await writeFile(
1617
join(

generators/writeExerciseSpec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ describe('${exerciseName}', () => {
2323
2424
expect(${exerciseName}()).toBe('');
2525
});
26-
});`;
26+
});< 8000 /span>
27+
`;
2728

2829
await writeFile(
2930
join(exercisePath, `${trueExerciseName}.spec.js`),

generators/writeReadme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ async function writeReadme(exercisePath) {
66
const { exerciseNumber, exerciseName } = splitDirectoryName(exercisePath);
77
const readmeContent = `# Exercise ${exerciseNumber} - ${exerciseName}
88
9-
Description of the exercise goes here.`;
9+
Description of the exercise goes here.
10+
`;
1011

1112
await writeFile(join(exercisePath, "README.md"), readmeContent);
1213
}

0 commit comments

Comments
 (0)
0