<commit_before>const assert = require('chai').assert

const adicional = require('../src/adicionalTracker')

describe('Adicional', function() {
    this.timeout(0)

    // describe('#Adicional', function() {
    //     it('should extract the messages from the website with success', function(done) {
    //         const id = '2016122222240929', code = 1750
    //         adicional.getInfo(id, code, (err, info) => {
    //             assert.isNull(err)
    //
    //             assert.equal(info.date_expedition, '2016-12-24T00:00:00Z')
    //             assert.equal(info.service_type, 'ENTREGA')
    //             assert.equal(info.updated, '2016-12-27T15:57:00Z')
    //             assert.equal(info.status, 'DESCARTADO')
    //
    //             console.log(id + ' attempts: ' + info.retries)
    //             done()
    //         })
    //
    //     });
    //
    //     it('should fail to extract', function(done) {
    //         const id = '423423424', code = 1750
    //         adicional.getInfo(id, code, (err, info) => {
    //             assert.isNotNull(err)
    //
    //             done()
    //         })
    //
    //     });
    // });


});<commit_msg>Fixed tests<commit_after>const assert = require('chai').assert

const adicional = require('../src/adicionalTracker')

describe('Adicional', function() {
    this.timeout(0)

    describe('#Adicional', function() {
        it('should extract the messages from the website with success', function(done) {
            const id = '2016122222240929', code = 1750
            adicional.getInfo(id, code, (err, info) => {
                assert.isNull(err)

                assert.equal(info.date_expedition, '2016-12-24T00:00:00Z')
                assert.equal(info.service_type, 'ENTREGA')
                assert.equal(info.updated, '2016-12-27T15:57:00Z')
                assert.equal(info.status, 'DESCARTADO')

                console.log(id + ' attempts: ' + info.retries)
                done()
            })

        });

        it('should fail to extract', function(done) {
            const id = '423423424', code = 1750
            adicional.getInfo(id, code, (err, info) => {
                assert.isNotNull(err)

                done()
            })

        });
    });


});
{'fraction_non_alphanumeric': 0.15662120545534536, 'fraction_numerical': 0.05455345358556973, 'mean_word_length': 1.6596491228070176, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '731677', 'n_tokens_mistral': 775, 'n_tokens_neox': 685, 'n_words': 119}