<commit_before>import reducers from './reducers';

test('reducers', () => {
  let state
  state = reducers({searchTerm:'house',omdbData:{}}, {type:'SET_SEARCH_TERM',searchTerm: 'house'})
  expect(state).toEqual({searchTerm: 'house',omdbData:{}})
})<commit_msg>added 6 tests<commit_after>import reducers from './reducers'

test('@@INIT', () => {
  let state
  state = reducers(undefined, {})
  expect(state).toEqual({searchTerm: '', omdbData: {}})
})

test('SET_SEARCH_TERM', () => {
  let state
  state = reducers({searchTerm: '', omdbData: {}}, {type: 'SET_SEARCH_TERM', searchTerm: 'house'})
  expect(state).toEqual({searchTerm: 'house', omdbData: {}})
})

test('ADD_OMDB_DATA', () => {
  let state
  state = reducers({searchTerm:'',omdbData:{}}, {type:'ADD_OMDB_DATA',imdbID:'tt3986586',omdbData:{Title:'Fuller House',Year:'2016–',Rated:'TV-G',Released:'26 Feb 2016',Runtime:'30 min',Genre:'Comedy, Family',Director:'N/A',Writer:'<NAME>',Actors:'<NAME>, <NAME>, <NAME>, <NAME>',Plot:'In a continuation of Full House, <NAME> is a mother of three young boys and is a recent widow. D.J.\'s sister Stephanie, her best friend Kimmy and Kimmy\'s teenage daughter all move in to help raise her sons. The house is now a lot fuller.',Language:'English',Country:'USA',Awards:'1 win.',Poster:'https://images-na.ssl-images-amazon.com/images/M/MV5BMTU2NzA0ODAyMF5BMl5BanBnXkFtZTgwNDE5MTIxMDI@._V1_SX300.jpg',Metascore:'N/A',imdbRating:'7.2',imdbVotes:'13,415',imdbID:'tt3986586',Type:'series',totalSeasons:'2',Response:'True'}})
  expect(state).toEqual({searchTerm:'',omdbData:{tt3986586:{Title:'Fuller House',Year:'2016–',Rated:'TV-G',Released:'26 Feb 2016',Runtime:'30 min',Genre:'Comedy, Family',Director:'N/A',Writer:'<NAME>',Actors:'<NAME>, <NAME>, <NAME>, <NAME>',Plot:'In a continuation of Full House, <NAME> is a mother of three young boys and is a recent widow. D.J.\'s sister Stephanie, her best friend Kimmy and Kimmy\'s teenage daughter all move in to help raise her sons. The house is now a lot fuller.',Language:'English',Country:'USA',Awards:'1 win.',Poster:'https://images-na.ssl-images-amazon.com/images/M/MV5BMTU2NzA0ODAyMF5BMl5BanBnXkFtZTgwNDE5MTIxMDI@._V1_SX300.jpg',Metascore:'N/A',imdbRating:'7.2',imdbVotes:'13,415',imdbID:'tt3986586',Type:'series',totalSeasons:'2',Response:'True'}}})
})
{'fraction_non_alphanumeric': 0.1990438939591482, 'fraction_numerical': 0.03954802259887006, 'mean_word_length': 7.819923371647509, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '2714551', 'n_tokens_mistral': 898, 'n_tokens_neox': 826, 'n_words': 152}