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

6 lines
222 B
JavaScript

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')
})