Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
3
test/pad/pad.js
Normal file
3
test/pad/pad.js
Normal file
@ -0,0 +1,3 @@
|
||||
const pad = (str, length, char = ' ') =>
|
||||
str.padStart((str.length + length) / 2, char).padEnd(length, char);
|
||||
module.exports = pad;
|
||||
Reference in New Issue
Block a user