{"size": 428, "ext": "js", "max_stars_repo_path": "00/10_longestPalindrome/test.js", "max_stars_repo_name": "mohammadsakrdev/cracking-code-interview", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "00/10_longestPalindrome/test.js", "max_issues_repo_name": "mohammadsakrdev/cracking-code-interview", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "00/10_longestPalindrome/test.js", "max_forks_repo_name": "mohammadsakrdev/cracking-code-interview", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.7777777778, "max_line_length": 59, "alphanum_fraction": 0.6074766355}
const longestPalindrome = require("./index");

test("'cbbd' returns 'bb'", () => {
  expect(longestPalindrome("cbbd")).toEqual("bb");
});

test("'abba' returns 'abba'", () => {
  expect(longestPalindrome("abba")).toEqual("abba");
});

test("'abacdfgdcaba' returns 'aba'", () => {
  expect(longestPalindrome("abacdfgdcaba")).toEqual("aba");
});

test("'a' returns 'a'", () => {
  expect(longestPalindrome("a")).toEqual("a");
});
