mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
03_reverseString - update punctuation test case to include comma (#467)
This commit is contained in:
@@ -10,7 +10,9 @@ describe('reverseString', () => {
|
||||
});
|
||||
|
||||
test('works with numbers and punctuation', () => {
|
||||
expect(reverseString('123! abc!')).toEqual('!cba !321');
|
||||
expect(reverseString('123! abc! Hello, Odinite.')).toEqual(
|
||||
'.etinidO ,olleH !cba !321'
|
||||
);
|
||||
});
|
||||
test('works with blank strings', () => {
|
||||
expect(reverseString('')).toEqual('');
|
||||
|
||||
Reference in New Issue
Block a user