Rename folders with numbers and underscores

This commit is contained in:
Benjo Kho
2021-08-07 14:52:11 +08:00
parent 55cfb173d8
commit 61f38bf60c
40 changed files with 8 additions and 8 deletions
+18
View File
@@ -0,0 +1,18 @@
const reverseString = require('./reverseString')
describe('reverseString', () => {
test('reverses single word', () => {
expect(reverseString('hello')).toEqual('olleh');
});
test('reverses multiple words', () => {
expect(reverseString('hello there')).toEqual('ereht olleh')
})
test('works with numbers and punctuation', () => {
expect(reverseString('123! abc!')).toEqual('!cba !321')
})
test('works with blank strings', () => {
expect(reverseString('')).toEqual('')
})
});