<commit_before>describe("StatsHoldr", function () {
    it("doesn't throw an error", function () {
        new StatsHoldr();
    })
})<commit_msg>Added general constructor settings tests<commit_after>var prefix = "MyStatsHoldr",
    autoSave = true,
    callbackArgs = ["hello", "world"],
    defaults = {
        "valueDefault": 0,
        "onModular": 10
    },
    displayChanges = {
        "9": "max"
    },
    values = ["lives", "tries"],
    StatsHolder;

describe("constructor", function () {
    it("doesn't throw an error", function () {
        new StatsHoldr();
    });

    it("correctly sets general settings", function () {
        StatsHolder = new StatsHoldr({
            "prefix": prefix,
            "autoSave": autoSave,
            "callbackArgs": callbackArgs,
            "defaults": defaults,
            "displayChanges": displayChanges,
            "values": values
        });

        chai.expect(StatsHolder.getPrefix()).to.be.equal(prefix);
        chai.expect(StatsHolder.getAutoSave()).to.be.equal(autoSave);
        chai.expect(StatsHolder.getCallbackArgs()).to.be.equal(callbackArgs);
        chai.expect(StatsHolder.getDefaults()).to.be.equal(defaults);
        chai.expect(StatsHolder.getDisplayChanges()).to.be.equal(displayChanges);
    });
})
{'fraction_non_alphanumeric': 0.151987529228371, 'fraction_numerical': 0.003117692907248636, 'mean_word_length': 2.7217391304347824, 'pattern_counts': {'":': 9, '<': 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': '3933128', 'n_tokens_mistral': 382, 'n_tokens_neox': 360, 'n_words': 67}