Skip to content

Commit 41c43b3

Browse files
committed
Remove generated spaces on blank lines
1 parent ce35854 commit 41c43b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

generators/writeExercise.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ async function writeExercise(exercisePath) {
66
const { exerciseName } = splitDirectoryName(exercisePath);
77
const isSolutionFile = exercisePath.includes("/solution");
88
const exerciseContent = `const ${exerciseName} = function() {
9-
${isSolutionFile ? "// Replace this comment with the solution code" : ""}
9+
${isSolutionFile ? " // Replace this comment with the solution code" : ""}
1010
};
11-
11+
1212
// Do not edit below this line
1313
module.exports = ${exerciseName};
1414
`;

generators/writeExerciseSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('${exerciseName}', () => {
1717
1818
expect(${exerciseName}()).toBe('');
1919
});
20-
20+
2121
test${isSolutionFile ? "" : ".skip"}('Second test description', () => {
2222
// Replace this comment with any other necessary code, and update the expect line as necessary
2323

0 commit comments

Comments
 (0)