<commit_before>'use strict';

const td            = require('testdouble');
const childProcess  = require('child_process');
const VerifyTask    = require('../../../lib/tasks/verify-cordova-installed');

describe('Verify Cordova Installed Task', () => {
  let execDouble, verifyCmd;

  beforeEach(() => {
    execDouble = td.replace(childProcess, 'execSync');

    verifyCmd = new VerifyTask({
      command: 'foo',
      options: {}
    });
  });

  afterEach(() => {
    td.reset();
  });

  it('attempts to exec cmd', () => {
    const expected = 'command -v cordova >/dev/null && ' +<commit_msg>tests(verify-cordova-installed): fix<commit_after>'use strict';

const td            = require('testdouble');
const childProcess  = require('child_process');

describe('Verify Cordova Installed Task', () => {
  let execDouble, verifyCmd;

  beforeEach(() => {
    execDouble = td.replace(childProcess, 'execSync');

    const VerifyTask = require('../../../lib/tasks/verify-cordova-installed');
    verifyCmd = new VerifyTask({
      command: 'foo',
      options: {}
    });
  });

  afterEach(() => {
    td.reset();
  });

  it('attempts to exec cmd', () => {
    const expected = 'command -v cordova >/dev/null && ' +
{'fraction_non_alphanumeric': 0.18472906403940886, 'fraction_numerical': 0.0, 'mean_word_length': 3.1322033898305084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2399101', 'n_tokens_mistral': 377, 'n_tokens_neox': 367, 'n_words': 81}