<commit_before>/*jshint unused:false*/
'use strict';
var chai = require('chai');
var expect = chai.expect;
var request = require('supertest');

module.exports = function() {
  'use strict';

  this.Then(/^I should be shown no content when visiting "([^"]*)"$/, function (url, callback) {
    request(url)
      .get('/')
      .end(function(error, response) {
        expect(error).to.not.equal(undefined);
        expect(error.code).to.equal('ECONNREFUSED');
        callback();
      });
  });

};<commit_msg>loader expectations on stop spec steps for understanding why travis CI is failing but works locally.<commit_after>/*jshint unused:false*/
'use strict';
var chai = require('chai');
var expect = chai.expect;
var request = require('supertest');

module.exports = function() {
  'use strict';

  this.Then(/^I should be shown no content when visiting "([^"]*)"$/, function (url, callback) {
    request(url)
      .get('/')
      .end(function(error, response) {
        expect(error, 'Error should be provided from access on stopped process.').to.not.equal(undefined);
        expect(error.code, 'Error code should be provided as \'EXONNREFUSED\' on access of stopped process.').to.equal('ECONNREFUSED');
        callback();
      });
  });

};
{'fraction_non_alphanumeric': 0.16533546325878595, 'fraction_numerical': 0.0, 'mean_word_length': 3.572992700729927, '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': '4540469', 'n_tokens_mistral': 380, 'n_tokens_neox': 373, 'n_words': 106}