UNPKG

js-ord

Version:

Get the ASCII value of alphanumeric characters

10 lines (8 loc) 299 B
//Test: npm test ./__tests__/isPalindrome.test.js const { isPalindrome } = require("../src/index"); describe('isPalindrome', () => { it('expects to recieve a string', () => { expect(isPalindrome('racecar')).toBe('racecar') expect(isPalindrome('blossom')).toBe('mossolb') }) })