<commit_before>import React from 'react/addons';
import createComponent from './utils/createComponent';
import FooBar from '../src/example/FooBar/FooBar';


describe('ComponentRouter', () => {
  const ComponentRouterInjector = require('inject!../src/ComponentRouter');
  let Actions, Store, ComponentRouter;
  let storeUnsubscribe, getDefault, initProps;

  const Chart = React.createClass({
    render() {
      return (
        <div />
      );
    }
  });

  beforeEach(() => {
    Actions = jasmine.createSpyObj('Actions', ['removeParam', 'addDefaultParam']);
    Store = jasmine.createSpyObj('Store', ['']);
    getDefault = jasmine.createSpy('getDefault')
      .and.returnValue('pacman');
  });


  beforeEach(() => {
    storeUnsubscribe = jasmine.createSpy('storeUnsubscribe');
    Store = jasmine.createSpyObj('Store', ['subscribe',
      'unsubscribe', 'dispatch', 'getQuery', 'getDefaultParams']);
    Store.subscribe.and.returnValue(storeUnsubscribe);
    Store.getQuery.and.returnValue({});
    initProps = {
      namespace: 'page',
      config: {}
    };
    ComponentRouter = ComponentRouterInjector({
      './Actions': Actions,
      './Store': Store,<commit_msg>Don't use Actual FooBar component<commit_after>import React from 'react/addons';
import createComponent from './utils/createComponent';

describe('ComponentRouter', () => {
  const ComponentRouterInjector = require('inject!../src/ComponentRouter');
  let Actions, Store, ComponentRouter;
  let storeUnsubscribe, getDefault, initProps;

  const Chart = React.createClass({
    render() {
      return (
        <div />
      );
    }
  });
  const FooBar = React.createClass({
    render() {
      return (
        <div />
      );
    }
  });

  beforeEach(() => {
    Actions = jasmine.createSpyObj('Actions', ['removeParam', 'addDefaultParam']);
    Store = jasmine.createSpyObj('Store', ['']);
    getDefault = jasmine.createSpy('getDefault')
      .and.returnValue('pacman');

    Store = jasmine.createSpyObj('Store', ['subscribe',
      'unsubscribe', 'dispatch', 'getQuery', 'getDefaultParams']);
    storeUnsubscribe = jasmine.createSpy('storeUnsubscribe');
    Store.subscribe.and.returnValue(storeUnsubscribe);
    Store.getQuery.and.returnValue({});
    initProps = {
      namespace: 'page',
      config: {}
    };
    ComponentRouter = ComponentRouterInjector({
      './Actions': Actions,
      './Store': Store,
{'fraction_non_alphanumeric': 0.15850622406639003, 'fraction_numerical': 0.0, 'mean_word_length': 3.5836501901140685, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 11, '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': '4413184', 'n_tokens_mistral': 716, 'n_tokens_neox': 701, 'n_words': 128}