<commit_before>/*global describe, it */
var expect = require('chai').expect;
var run = require('../util/run');

describe('Utility: `run`', function () {
  
  it('should return an error with invalid command type', function (done) {
    run(0).catch(function (err) {
      expect(err.message).to.eql('Command must be a string');
      done();
    });
  });
  
  it('should return an error on when 7z gets one', function (done) {
    run('7z ?').catch(function (err) {
      expect(err.message).to.eql('Incorrect command line');
      done();
    });
  });
  
  it('should return an stdout on progress', function (done) {
    run('7z')
    .progress(function (data) {
      expect(data).to.be.a('string');
    })
    .then(function () {
      done();
    });
  });
  
});<commit_msg>Fix: Run command use 7za binary #2<commit_after>/*global describe, it */
var expect = require('chai').expect;
var run = require('../util/run');

describe('Utility: `run`', function () {

  it('should return an error with invalid command type', function (done) {
    run(0).catch(function (err) {
      expect(err.message).to.eql('Command must be a string');
      done();
    });
  });

  it('should return an error on when 7z gets one', function (done) {
    run('7za ?').catch(function (err) {
      expect(err.message).to.eql('Incorrect command line');
      done();
    });
  });

  it('should return an stdout on progress', function (done) {
    run('7za')
    .progress(function (data) {
      expect(data).to.be.a('string');
    })
    .then(function () {
      done();
    });
  });

});
{'fraction_non_alphanumeric': 0.19047619047619047, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 2.9697732997481108, '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': '2799832', 'n_tokens_mistral': 513, 'n_tokens_neox': 506, 'n_words': 130}