<commit_before>'use strict'

var test = require('tape')
var server = require('./startServer.js')

test('Initialize server', function (t) {
  server(function (err, instance) {
    t.ok(instance, 'got instance')
    t.end()
  })
})<commit_msg>Delay test after sails have been lifted so that mocks can be created.<commit_after>'use strict'

var test = require('tape')
var server = require('./startServer.js')

// test('Initialize server', function (t) {
//   server(function (err, instance) {
//     t.ok(instance, 'got instance')
//     t.end()
//   })
// })

// TODO: this setTimeout is there so that the hooks can run and the database
// can be filled in. Should think of another way to do this really.

test('Initialize server', function (t) {
  t.plan(1)
  server(function (err, instance) {
    setTimeout(function () {
      t.ok(instance, 'got instance')
      t.end()
    }, 4000)
  })
})
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.005599104143337066, 'mean_word_length': 3.3609756097560974, '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': '3208617', 'n_tokens_mistral': 282, 'n_tokens_neox': 281, 'n_words': 91}