<commit_before>require('dotenv').load(); // load environmental variables

var chai = require('chai'),
  Database = require('../src/Database'),
  assert = chai.assert,
  db = new Database({});

describe('Database', function () {

  describe('#query()', function () {

    it('throws error when sql statement is unspecified', function (done) {
      db.query().catch(function (err) {
        assert.match(err, /sql/i);
        done();
      });
    });

    it('throws error when sql statement is Number', function (done) {
      db.query(1).catch(function (err) {
        assert.match(err, /sql/i);
        done();
      });
    });

    it('throws error when sql statement is Boolean', function (done) {
      db.query(true).catch(function (err) {
        assert.match(err, /sql/i);
        done();
      });<commit_msg>Database class requires a database name. Update the unit test.<commit_after>require('dotenv').load(); // load environmental variables

var chai = require('chai'),
  Database = require('../src/Database'),
  assert = chai.assert,
  db = new Database({database: 'something'});

describe('Database', function () {

  describe('#query()', function () {

    it('throws error when sql statement is unspecified', function (done) {
      db.query().catch(function (err) {
        assert.match(err, /sql/i);
        done();
      });
    });

    it('throws error when sql statement is Number', function (done) {
      db.query(1).catch(function (err) {
        assert.match(err, /sql/i);
        done();
      });
    });

    it('throws error when sql statement is Boolean', function (done) {
      db.query(true).catch(function (err) {
        assert.match(err, /sql/i);
        done();
      });
{'fraction_non_alphanumeric': 0.17251461988304093, 'fraction_numerical': 0.0011695906432748538, 'mean_word_length': 2.7770419426048565, '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': '3551747', 'n_tokens_mistral': 504, 'n_tokens_neox': 489, 'n_words': 130}