js-practice/test/string/reverse-words-in-a-string.test.js

6 lines
222 B
JavaScript
Raw Normal View History

2019-03-10 16:43:04 +08:00
import ReverseWordsInAString from '../../src/string/reverse-words-in-a-string'
test('ReverseWordsInAString', () => {
expect(ReverseWordsInAString('Let\'s take LeetCode contest')).toBe('s\'teL ekat edoCteeL tsetnoc')
})