<commit_before>import chai, {should} from 'chai';
import {chooseItem} from "./frenchToastActions";


describe("Actions component", () => {
  describe("choose item action", () => {
    it("sets the choice to the number it was passed", () => {
      chooseItem(0).choice.should.equal(0);
    });
    it("sets the type to CHOOSE_ITEM", () => {
      chooseItem(0).type.should.equal("CHOOSE_ITEM");
    });
  });
});
 <commit_msg>Adds create Item test<commit_after>import chai, {should} from 'chai';
import {chooseItem} from "./frenchToastActions";


describe("Actions component", () => {
  describe("choose item action", () => {
    it("sets the choice to the number it was passed", () => {
      chooseItem(0).choice.should.equal(0);
    });
    it("sets the type to CHOOSE_ITEM", () => {
      chooseItem(0).type.should.equal("CHOOSE_ITEM");
    });
  });

  describe("create item action", () => {
    it("sets the type to CREATE_ITEM", ()=> {
      createItem.type.should.equal("CREATE_ITEM");
    });
  });
});

 
{'fraction_non_alphanumeric': 0.1932938856015779, 'fraction_numerical': 0.005917159763313609, 'mean_word_length': 3.5927601809954752, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7472219', 'n_tokens_mistral': 337, 'n_tokens_neox': 323, 'n_words': 72}