<commit_before>'use strict';

let assert = require('assert');

describe('"run" method', function() {
  let sahara;
  let messages;

  before(function() {
    sahara = require('../../../index.js');
    messages = require('../../../src/sahara/sahara/message/messages');
  });

  it('Should provide a Promise.', function(done) {
    this.timeout(0);
    assert.doesNotThrow(function() {
      sahara.cli().run([]).then(function(success) {
        done();
      }, function(error) {
        done();
      });
    });
  });

  it('Should be able to run a project build for current platform.', function(done) {
    this.timeout(0);
    sahara.cli().run(['-d']).then(function(success) {
      done();
    }, function(error) {
      if (error === messages.error.run.failure) {
        done(new Error('Project build was not run, Sahara reported an error.'));
      } else {
        done(new Error('Project build was not run. Sahara did not report an error.'));
      }
    });
  });
});<commit_msg>Removing faulty run test<commit_after>'use strict';

let assert = require('assert');

describe('"run" method', function() {
  let sahara;
  let messages;

  before(function() {
    sahara = require('../../../index.js');
    messages = require('../../../src/sahara/sahara/message/messages');
  });

  it('Should provide a Promise.', function(done) {
    this.timeout(0);
    assert.doesNotThrow(function() {
      sahara.cli().run([]).then(function(success) {
        done();
      }, function(error) {
        done();
      });
    });
  });

});
{'fraction_non_alphanumeric': 0.2006514657980456, 'fraction_numerical': 0.001954397394136808, 'mean_word_length': 2.719128329297821, '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': '6471414', 'n_tokens_mistral': 485, 'n_tokens_neox': 474, 'n_words': 101}