ran npm run tdd & generated TDD
This commit is contained in:
8
test/toEnglishDate/toEnglishDate.js
Normal file
8
test/toEnglishDate/toEnglishDate.js
Normal file
@ -0,0 +1,8 @@
|
||||
module.exports = time => {
|
||||
try {
|
||||
return new Date(time)
|
||||
.toISOString()
|
||||
.split('T')[0]
|
||||
.replace(/-/g, '/');
|
||||
} catch (e) {}
|
||||
};
|
||||
Reference in New Issue
Block a user