Completed 1-4

This commit is contained in:
Thuan Bui
2025-02-22 10:23:40 +09:00
parent d4421b055f
commit c415382137
7 changed files with 68 additions and 23 deletions
+3 -3
View File
@@ -5,16 +5,16 @@ describe('reverseString', () => {
expect(reverseString('hello')).toEqual('olleh');
});
test.skip('reverses multiple words', () => {
test('reverses multiple words', () => {
expect(reverseString('hello there')).toEqual('ereht olleh');
});
test.skip('works with numbers and punctuation', () => {
test('works with numbers and punctuation', () => {
expect(reverseString('123! abc! Hello, Odinite.')).toEqual(
'.etinidO ,olleH !cba !321'
);
});
test.skip('works with blank strings', () => {
test('works with blank strings', () => {
expect(reverseString('')).toEqual('');
});
});