Skip to content

Commit ef1d4e7

Browse files
committed
fix up tests
1 parent 670fd65 commit ef1d4e7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/verify-solutions.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,5 @@ function nameFromPath(path){
8787
var regex = /exercises\/(\w+)\/solution\/solution\.js/
8888
var res = path.match(regex)
8989
if(!res) throw new Error('Cannot establish exercise from path: ' + path)
90-
return toExerciseName(res[1])
91-
}
92-
93-
// ping_pell -> Ping Bell
94-
function toExerciseName (str) {
95-
return str.split('_').map(function(str){ return str.charAt(0).toUpperCase() + str.slice(1)}).join(' ')
90+
return res[1]
9691
}

0 commit comments

Comments
 (0)