"use strict";

const {
  convertCode
} = require('../utilities');

test('string.at method', () => {
  const inputCode = `const name = "W3Schools";
let letter = name.at(2);
let letter2 = name[1]`;
  const outputCode = `const name = "W3Schools";
let letter = name.at(2);
let letter2 = name[1];`;
  expect(convertCode(inputCode)).toBe(outputCode);
});