<commit_before>describe('resultsController', function(){
  beforeEach(module('mainApp.results'));

  var $controller;
  var store = {};

  beforeEach(function(){
    spyOn(localStorage, 'getItem').and.callFake(function(key){
      return store[key];
    });
    spyOn(localStorage, 'setItem').and.callFake(function(key, val){
      store[key] = val;
    });

    var cafe = {
      name: 'starbucks',
      address: '611 mission Street',
      phone: '1234567890',
      menu: []
    }
    localStorage.setItem('servedCafeObject', JSON.stringify(cafe));
  });

  beforeEach(inject(function(_$controller_){
    $controller = _$controller_;
  }));

  var $scope = {};

  describe('$scope', function(){
    
    it('should be \'starbucks\'', function(){
      var controller = $controller('resultsController', {$scope: $scope});
      expect($scope.cafeName).toBe('starbucks');
    });

    it('should be five.', function(){
      var controller = $controller('resultsController', {$scope: $scope});
      expect($scope.max).toBe(5);
    });
  });
});<commit_msg>test: added scope address testing<commit_after>describe('resultsController', function(){
  beforeEach(module('mainApp.results'));

  var $controller;
  var store = {};

  beforeEach(function(){
    spyOn(localStorage, 'getItem').and.callFake(function(key){
      return store[key];
    });
    spyOn(localStorage, 'setItem').and.callFake(function(key, val){
      store[key] = val;
    });

    var cafe = {
      name: 'starbucks',
      address: '611 mission Street',
      phone: '1234567890',
      menu: []
    }
    localStorage.setItem('servedCafeObject', JSON.stringify(cafe));
  });

  beforeEach(inject(function(_$controller_){
    $controller = _$controller_;
  }));

  var $scope = {};

  describe('$scope', function(){


      it('should be \'starbucks\'', function(){
        var controller = $controller('resultsController', {$scope: $scope});
        expect($scope.cafeName).toBe('starbucks');
      });


    it('should be five.', function(){
      var controller = $controller('resultsController', {$scope: $scope});
      expect($scope.max).toBe(5);
    });

    describe('$scope.address', function(){
      it('should be a property on scope', function(){
        var controller = $controller('resultsController', {$scope: $scope});
        expect($scope.address).toBeDefined();
      });
      it('should have the proper address', function(){
        var controller = $controller('resultsController', {$scope: $scope});
        expect($scope.address).toBe('611 mission Street');
      });
    })




  });
});
{'fraction_non_alphanumeric': 0.18153727307840864, 'fraction_numerical': 0.01197373503283121, 'mean_word_length': 3.4732297063903284, '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': '489600', 'n_tokens_mistral': 791, 'n_tokens_neox': 742, 'n_words': 147}