<commit_before>import chai from 'chai'
import test from 'ava'

const expect = chai.expect

import {parseArguments} from '../src/arguments'

const defaults = {
  version: 'some version',
  description: 'some description',
  logLevel: 'some log level'
}

test('parseArguments uses defaults', () => {
  const program = parseArguments(defaults, [])
  expect(program.version()).to.equal(defaults.version)
  expect(program.description()).to.equal(defaults.description)
  expect(program).to.have.property('logLevel', defaults.logLevel)
})

test('parseArguments parses arguments as expected', () => {
  const expected = {
    logLevel: 'debug'
  }
  const program = parseArguments(
    defaults, ['<node binary>', '<script>',
      '-l', expected.logLevel
    ])

  expect(program).to.have.property('logLevel', expected.logLevel)
})<commit_msg>Update test/arguments to use ava assertions<commit_after>import test from 'ava'

import {parseArguments} from '../src/arguments'

const defaults = {
  version: 'some version',
  description: 'some description',
  logLevel: 'some log level'
}

test('parseArguments uses defaults', t => {
  const program = parseArguments(defaults, [])
  t.is(program.version(), defaults.version)
  t.is(program.description(), defaults.description)
  t.is(program.logLevel, defaults.logLevel)
})

test('parseArguments parses arguments as expected', t => {
  const expected = {
    logLevel: 'debug'
  }
  const program = parseArguments(
    defaults, ['<node binary>', '<script>',
      '-l', expected.logLevel
    ])

  t.is(program.logLevel, expected.logLevel)
})
{'fraction_non_alphanumeric': 0.14854614412136535, 'fraction_numerical': 0.0, 'mean_word_length': 4.593639575971731, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '1602351', 'n_tokens_mistral': 468, 'n_tokens_neox': 468, 'n_words': 116}