<commit_before>'use strict';

/*
data service
- pull geojson data from various endpoints
- receives sse for updates
- notify listeners when data changes
- add listeners
 */
require('chai').should()
var assert = require('assert')

var dataServiceFactory = require('../lib/dataService')

describe('DataService', () => {
  var validConfig = {
    url: '...',
    type: 'longPoll',
    refresh: 10000
  }

  describe('Creating a DataService with config', () => {
    it('should require a valid config object', () => {<commit_msg>Add reminder to investigate node-event-emitter<commit_after>'use strict';

/*
data service
- pull geojson data from various endpoints
- receives sse for updates
- notify listeners when data changes
- add listeners
- node-event-emitter
 */
require('chai').should()
var assert = require('assert')

var dataServiceFactory = require('../lib/dataService')

describe('DataService', () => {
  var validConfig = {
    url: '...',
    type: 'longPoll',
    refresh: 10000
  }

  describe('Creating a DataService with config', () => {
    it('should require a valid config object', () => {
{'fraction_non_alphanumeric': 0.14402173913043478, 'fraction_numerical': 0.009057971014492754, 'mean_word_length': 3.8464912280701755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3186747', 'n_tokens_mistral': 330, 'n_tokens_neox': 307, 'n_words': 99}