<commit_before>'use strict';
/* global describe, before, beforeEach, after, afterEach, it */
/* jshint maxlen: false */

var expect   = require('expect.js');
var mongoose = require('mongoose');

describe('mongoose-created-at', function () {
  // Connect to the database
  before(function (done) {
    mongoose.connect('mongodb://127.0.0.1/mongoose-created-at-test', done);
  });

  // Level 1 tests
  describe('Level 1', function () {

    it('should save a createdAt property when a new model is saved', function (done) {<commit_msg>updated test to delete the database after tests run<commit_after>'use strict';
/* global describe, before, beforeEach, after, afterEach, it */
/* jshint maxlen: false */

var expect   = require('expect.js');
var mongoose = require('mongoose');

describe('mongoose-created-at', function () {
  // Connect to the database
  before(function (done) {
    mongoose.connect('mongodb://127.0.0.1/mongoose-created-at-test', done);
  });

  // Delete the database after testing
  after(function (done) {
    mongoose.connection.db.dropDatabase(done);
  });

  // Level 1 tests
  describe('Level 1', function () {

    it('should save a createdAt property when a new model is saved', function (done) {
{'fraction_non_alphanumeric': 0.1493877551020408, 'fraction_numerical': 0.013061224489795919, 'mean_word_length': 3.943548387096774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3042827', 'n_tokens_mistral': 380, 'n_tokens_neox': 373, 'n_words': 110}