<commit_before>'use strict';

describe('myApp.view1 module', function() {

  beforeEach(module('myApp.view1'));

  describe('view1 controller', function(){

    it('should ....', inject(function($controller) {
      //spec body
      var $scope = {};

      var view1Ctrl = $controller('View1Ctrl', { $scope: $scope }); 
      expect(view1Ctrl).toBeDefined();
    }));

  });

  describe('view1 timeSlotService', function(){

  	var timeSlotService;

  	beforeEach(function() {

	  inject(function($injector) {
	    timeSlotService = $injector.get('timeSlotService');
	  });
	});


    it('should populate 34 half hour slots for a full day', inject(function(timeSlotService) {
      //spec body
      expect(timeSlotService.slots.length).toEqual(12);
    }));

  });

});<commit_msg>Have mock injection working in test - still red<commit_after>'use strict';

describe('myApp.view1 module', function() {

  beforeEach(module('myApp.view1'));

  describe('view1 controller', function(){

    it('should ....', inject(function($controller) {
      //spec body
      var $scope = {};

      var view1Ctrl = $controller('View1Ctrl', { $scope: $scope }); 
      expect(view1Ctrl).toBeDefined();
    }));

  });

  describe('view1 timeSlotService', function(){

  	var timeSlotService, mockCurrentTimeService

  	beforeEach(function() {

      mockCurrentTimeService = new Date(2014, 8, 4, 6, 0, 0);

      module(function ($provide) {
          $provide.value('currentTimeService', mockCurrentTimeService);
      });

  	  // inject(function($injector) {
  	  //   timeSlotService = $injector.get('timeSlotService');
  	  // });
	   
    });


    it('should populate 34 half hour slots for a full day', inject(function(timeSlotService) {
      //spec body
      expect(timeSlotService.slots.length).toEqual(12);
    }));

  });

});
{'fraction_non_alphanumeric': 0.16420361247947454, 'fraction_numerical': 0.016967706622879036, 'mean_word_length': 3.311320754716981, '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': '478198', 'n_tokens_mistral': 587, 'n_tokens_neox': 538, 'n_words': 108}