<commit_before>'use strict';

describe('userCampaignsCtrl', function() {
  var userCampaignsCtrl, scope, userid, $httpBackend;
  //Loading the main Application module
  beforeEach(module(ApplicationConfiguration.applicationModuleName));
  beforeEach(inject(function($controller, $rootScope, _$httpBackend_, Authentication) {
    scope = $rootScope.$new();
    Authentication.user = {
        _id: '<KEY>'
    };
    userid = '<KEY>';
    $httpBackend = _$httpBackend_;
    userCampaignsCtrl = $controller('userCampaignsCtrl', {
      $scope: scope,
    });
  }));
  it('should return all campaigns created by a user', function() {
    $httpBackend.when('GET', '/campaigns/' + userid).respond(200, {
        '_id' : '54e4b7eba241567dbbec7122',
        'lastModifiedBy' : '54da2257568f9cfd6d2dba2f',
      }
    );
    console.log(scope.myCampaigns);
    $httpBackend.flush();
    console.log(scope.myCampaigns);
    expect(typeof scope.myCampaigns).toBe('object');
  });
});<commit_msg>removed all console.log lines in test file<commit_after>'use strict';

describe('userCampaignsCtrl', function() {
  var userCampaignsCtrl, scope, userid, $httpBackend;
  //Loading the main Application module
  beforeEach(module(ApplicationConfiguration.applicationModuleName));
  beforeEach(inject(function($controller, $rootScope, _$httpBackend_, Authentication) {
    scope = $rootScope.$new();
    Authentication.user = {
        _id: '<KEY>'
    };
    userid = '<KEY>';
    $httpBackend = _$httpBackend_;
    userCampaignsCtrl = $controller('userCampaignsCtrl', {
      $scope: scope,
    });
  }));
  it('should return all campaigns created by a user', function() {
    $httpBackend.when('GET', '/campaigns/' + userid).respond(200, {
        '_id' : '54e4b7eba241567dbbec7122',
        'lastModifiedBy' : '54da2257568f9cfd6d2dba2f',
      }
    );
    $httpBackend.flush();
    expect(typeof scope.myCampaigns).toBe('object');
  });
});
{'fraction_non_alphanumeric': 0.14997405293201868, 'fraction_numerical': 0.031136481577581733, 'mean_word_length': 4.1005291005291005, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7392997', 'n_tokens_mistral': 645, 'n_tokens_neox': 625, 'n_words': 110}