<commit_before><commit_msg>Add test to mobilizations store<commit_after>import mobilizations from './../../stores/mobilizations'
import { EDIT_COLUMN_CONTENT } from './../../constants/ActionTypes';

describe('mobilizations', function(){
  describe('#editColumnContent', function(){
    it('should change the column text', function(){
      const mobilizationsList = [
        {
          name: "Bicicletada contra a redução da maioridade penal",
          id: 1,
          pages: [{
            blocks: [{
              uuid: "ffxx1122A2",
              columns: [{
                hash: "xyz1",
                size: 12,
                type: "content",
                content: "col-12"
              }]
            }]
          }]
        }
      ]

      const text = "My text"
      const action = {
        text: text,
        type: EDIT_COLUMN_CONTENT,
        mobilizationId: 1,
        blockId: "ffxx1122A2",
        columnHash: "xyz1"
      }

      var newState;

      newState = mobilizations(mobilizationsList, action)

      expect(newState[0].pages[0].blocks[0].columns[0].content).to.be.equal(text)
    })
  })
})
{'fraction_non_alphanumeric': 0.12920353982300886, 'fraction_numerical': 0.019469026548672566, 'mean_word_length': 1.778869778869779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '519076', 'n_tokens_mistral': 343, 'n_tokens_neox': 322, 'n_words': 69}