<commit_before>import test from 'ava';
import potFormater from '../src/potFormater';

test('should return a function', t => {
  t.is(typeof potFormater, 'function');
});

test('should return pot formatted string', t => {
  t.is(
    potFormater({
      'Go to MCS website': [
        {
          id: 'App.errorButton',
          description: 'Click error Button',
          defaultMessage: 'Go to MCS website',
          filename: './messages/src/containers/App/App.json',
        },
        {
          id: 'NotFound.errorButton',
          description: 'Click error Button',
          defaultMessage: 'Go to MCS website',
          filename: './messages/src/containers/NotFound/messages.json',
        },
      ],
    }),
    '#: ./messages/src/containers/App/App.json' + '\n' +
    '#. [App.errorButton] - Click error Button' + '\n' +
    '#: ./messages/src/containers/NotFound/messages.json' + '\n' +
    '#. [NotFound.errorButton] - Click error Button' + '\n' +
    'msgid \"Go to MCS website\"' + '\n' +
    'msgstr \"\"' + '\n',
  );
});<commit_msg>fix(test): remove useless escape<commit_after>import test from 'ava';
import potFormater from '../src/potFormater';

test('should return a function', t => {
  t.is(typeof potFormater, 'function');
});

test('should return pot formatted string', t => {
  t.is(
    potFormater({
      'Go to MCS website': [
        {
          id: 'App.errorButton',
          description: 'Click error Button',
          defaultMessage: 'Go to MCS website',
          filename: './messages/src/containers/App/App.json',
        },
        {
          id: 'NotFound.errorButton',
          description: 'Click error Button',
          defaultMessage: 'Go to MCS website',
          filename: './messages/src/containers/NotFound/messages.json',
        },
      ],
    }),
    '#: ./messages/src/containers/App/App.json' + '\n' +
    '#. [App.errorButton] - Click error Button' + '\n' +
    '#: ./messages/src/containers/NotFound/messages.json' + '\n' +
    '#. [NotFound.errorButton] - Click error Button' + '\n' +
    'msgid "Go to MCS website"' + '\n' +
    'msgstr ""' + '\n',
  );
});
{'fraction_non_alphanumeric': 0.1772449459332393, 'fraction_numerical': 0.0, 'mean_word_length': 2.2941176470588234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2610544', 'n_tokens_mistral': 662, 'n_tokens_neox': 658, 'n_words': 155}