mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
Revert edits
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const reverseString = function(str) {
|
||||
let newStr = str.split("").reverse().join("");
|
||||
|
||||
};
|
||||
|
||||
module.exports = reverseString;
|
||||
|
||||
@@ -5,14 +5,14 @@ describe('reverseString', () => {
|
||||
expect(reverseString('hello')).toEqual('olleh');
|
||||
});
|
||||
|
||||
test('reverses multiple words', () => {
|
||||
test.skip('reverses multiple words', () => {
|
||||
expect(reverseString('hello there')).toEqual('ereht olleh')
|
||||
})
|
||||
|
||||
test('works with numbers and punctuation', () => {
|
||||
test.skip('works with numbers and punctuation', () => {
|
||||
expect(reverseString('123! abc!')).toEqual('!cba !321')
|
||||
})
|
||||
test('works with blank strings', () => {
|
||||
test.skip('works with blank strings', () => {
|
||||
expect(reverseString('')).toEqual('')
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user