<commit_before>/* Copyright (c) 2010-2014 <NAME>, MIT License */

"use strict";


var seneca = require('seneca')

var shared = require('seneca-store-test')


// var si = seneca({log:'silent'})
var si = seneca()
si.use(require('..'), {path:'/Users/Shared/GlobalsDB'})

si.__testcount = 0
var testcount = 0


describe('globals', function(){
  it('basic', function(done){
    testcount++
    shared.basictest(si,done)
  })

  it('close', function(done){<commit_msg>Moved db path to external parameter (env var)<commit_after>/* Copyright (c) 2010-2014 <NAME>, MIT License */

"use strict";


var seneca = require('seneca')

var shared = require('seneca-store-test')

var rootOfGlobalsInstall = process.env.GLOBALS_HOME;

var si = seneca({log:'silent'})
si.use(require('..'), {path:rootOfGlobalsInstall})

si.__testcount = 0
var testcount = 0


describe('globals', function(){
  it('basic', function(done){
    testcount++
    shared.basictest(si,done)
  })

  it('close', function(done){
{'fraction_non_alphanumeric': 0.18107833163784334, 'fraction_numerical': 0.02034587995930824, 'mean_word_length': 4.788235294117647, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3997422', 'n_tokens_mistral': 367, 'n_tokens_neox': 338, 'n_words': 78}