<commit_before>'use strict';

describe('Service: Config', function () {

  var deferred, config, scope;

  // load the service's module
  beforeEach(module('vleApp'));


  beforeEach(module('vleApp', function ($provide) {
    $provide.factory('VegaliteSpecSchema', function($q) {
      return {
        getSchema: function() {
          console.log("defer", $q)
          deferred = $q.defer();
          return deferred.promise;
        },
        instanceFromSchema: function() {
          return 'OK'
        }
      };
    });
  }));

  // instantiate service
  beforeEach(inject(function ($rootScope, _Config_) {
    scope = $rootScope.$new();
    config = _Config_;
  }));

  it('should have useVegaServer property', function () {
    deferred.resolve({properties: {cfg: {}}});
    scope.$digest();

    expect(config.config).toBe('OK');
  });

});<commit_msg>Remove log<commit_after>'use strict';

describe('Service: Config', function () {

  var deferred, config, scope;

  // load the service's module
  beforeEach(module('vleApp'));


  beforeEach(module('vleApp', function ($provide) {
    $provide.factory('VegaliteSpecSchema', function($q) {
      return {
        getSchema: function() {
          deferred = $q.defer();
          return deferred.promise;
        },
        instanceFromSchema: function() {
          return 'OK'
        }
      };
    });
  }));

  // instantiate service
  beforeEach(inject(function ($rootScope, _Config_) {
    scope = $rootScope.$new();
    config = _Config_;
  }));

  it('should have useVegaServer property', function () {
    deferred.resolve({properties: {cfg: {}}});
    scope.$digest();

    expect(config.config).toBe('OK');
  });

});
{'fraction_non_alphanumeric': 0.16706021251475797, 'fraction_numerical': 0.0, 'mean_word_length': 2.8261851015801356, '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': '5873448', 'n_tokens_mistral': 525, 'n_tokens_neox': 496, 'n_words': 99}