<commit_before>var assert = require('assert');
var Converter = require('../js/convert.js');

describe('ppt-png', function() {
    describe('normal', function() {
        it('should save without error', function() {
            new Converter({
                files:          ['test/OPW 733 Tienduizend redenen.ppt'],
                output:         'output/test/',
                invert:         true,
                greyscale:      true,
                deletePdfFile:  false,
                outputType:     'jpg',
                logLevel:       3,
                fileNameFormat: '_vers_%d',
                callback:       function(data) {
                    console.log(data.failed, data.success.length, data.files.length, data.time);
                }
            }).run();
        });
    });

    describe('promise', function() {
        it('should save without error', function() {
            new Converter({
                files:          ['test/OPW 733 Tienduizend redenen.ppt'],
                output:         'output/test/',
                invert:         true,
                greyscale:      true,
                deletePdfFile:  true,
                outputType:     'png',
                logLevel:       2,
                fileNameFormat: '_vers_%d'
            })
                .wait()
                .then(function(data) {
                    if(data.failed.length > 0) {
                        done(data.failed);
                    } else {<commit_msg>cleanup mocha test<commit_after>var assert = require('assert');
var Converter = require('../js/convert.js');
var files = ['test/OPW 733 Tienduizend redenen.ppt'];

describe('ppt-png', function() {
    describe('normal', function() {
        it('should save without error', function() {
            new Converter({
                files:          files,
                output:         'output/test/',
                invert:         true,
                greyscale:      true,
                deletePdfFile:  false,
                outputType:     'jpg',
                logLevel:       3,
                fileNameFormat: '_vers_%d',
                callback:       function(data) {
                    console.log(data.failed, data.success.length, data.files.length, data.time);
                }
            }).addFiles(files).run();
        });
    });

    describe('promise', function() {
        it('should save without error', function() {
            new Converter({
                files:          files,
                output:         'output/test/',
                invert:         true,
                greyscale:      true,
                deletePdfFile:  true,
                outputType:     'png',
                logLevel:       2,
                fileNameFormat: '_vers_%d'
            })
                .wait()
                .then(function(data) {
                    if(data.failed.length > 0) {
                        done(data.failed);
                    } else {
{'fraction_non_alphanumeric': 0.11588847833389318, 'fraction_numerical': 0.0050386294927779645, 'mean_word_length': 1.128663330950679, 'pattern_counts': {'":': 0, '<': 3, '<?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': '859201', 'n_tokens_mistral': 794, 'n_tokens_neox': 738, 'n_words': 156}