Skip to content

Commit 800c6cc

Browse files
🐛 fix: also copy .js files in copy-solutions.sh (#130)
* 🐛 fix: also copy .js files in copy-solutions.sh * Fix vacation-planning compile
1 parent 3eed943 commit 800c6cc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

projects/interfaces/vacation-planning/02-restaurants/index.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ describe(groupRestaurants, () => {
5555
Albany: ["Bombers"],
5656
},
5757
],
58-
])("%j", (city: solution.Landmark[], grouped: solution.GroupedLandmarks) => {
59-
expect(groupRestaurants(city)).toEqual(grouped);
60-
});
58+
])(
59+
"%j",
60+
(city: solution.Restaurant[], grouped: solution.GroupedRestaurants) => {
61+
expect(groupRestaurants(city)).toEqual(grouped);
62+
}
63+
);
6164
});

scripts/copy-solutions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
find projects -type f -name "*.test.*" -print0 | xargs -0 sed -i '' -e 's/\? solution/\? index/g'
44

55
for solutionPath in $(find projects -name \*solution\*); do
6-
if [[ $solutionPath == */solution.t* ]]; then
6+
if [[ $solutionPath == */solution.* ]]; then
77
replacedPath=${solutionPath//"solution"/"index"}
88
else
99
replacedPath=${solutionPath//".solution"/""}

0 commit comments

Comments
 (0)