<commit_before>import SideNavModule from './sideNav'
import SideNavController from './sideNav.controller';
import SideNavComponent from './sideNav.component';
import SideNavTemplate from './sideNav.html';

describe('SideNav', () => {
  let $rootScope, makeController;

  beforeEach(window.module(SideNavModule.name));
  beforeEach(inject((_$rootScope_) => {
    $rootScope = _$rootScope_;
    makeController = () => {
      return new SideNavController();
    };
  }));

  describe('Module', () => {
    // top-level specs: i.e., routes, injection, naming
  });

  describe('Controller', () => {
    // controller specs
    it('has a name property [REMOVE]', () => { // erase if removing this.name from the controller
      let controller = makeController();
      expect(controller).to.have.property('name');
    });
  });

  describe('Template', () => {
    // template specs
    // tip: use regex to ensure correct bindings are used e.g., {{  }}
    it('has name in template [REMOVE]', () => {
      expect(SideNavTemplate).to.match(/{{\s?vm\.name\s?}}/g);
    });
  });

  describe('Component', () => {
      // component/directive specs
      let component = SideNavComponent();

      it('includes the intended template',() => {
        expect(component.template).to.equal(SideNavTemplate);
      });

      it('uses `controllerAs` syntax', () => {
        expect(component).to.have.property('controllerAs');
      });

      it('invokes the right controller', () => {<commit_msg>oops sideNav spec failure fixed.<commit_after>import SideNavModule from './sideNav'
import SideNavController from './sideNav.controller';
import SideNavComponent from './sideNav.component';
import SideNavTemplate from './sideNav.html';

describe('SideNav', () => {
  let $rootScope, makeController;

  beforeEach(window.module(SideNavModule.name));
  beforeEach(inject((_$rootScope_) => {
    $rootScope = _$rootScope_;
    makeController = () => {
      return new SideNavController();
    };
  }));

  describe('Module', () => {
    // top-level specs: i.e., routes, injection, naming
  });

  describe('Controller', () => {
    // controller specs
    it('has a name property [REMOVE]', () => { // erase if removing this.name from the controller
      let controller = makeController();
      expect(controller).to.have.property('name');
    });
  });

  describe('Component', () => {
      // component/directive specs
      let component = SideNavComponent();

      it('includes the intended template',() => {
        expect(component.template).to.equal(SideNavTemplate);
      });

      it('uses `controllerAs` syntax', () => {
        expect(component).to.have.property('controllerAs');
      });

      it('invokes the right controller', () => {
{'fraction_non_alphanumeric': 0.17147026632615833, 'fraction_numerical': 0.0, 'mean_word_length': 3.291079812206573, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '6879178', 'n_tokens_mistral': 786, 'n_tokens_neox': 756, 'n_words': 169}