<commit_before>/* eslint-disable no-unused-vars */
const supertest = require('supertest');
const server = supertest(require('../../modules/server.js'));

describe('Large file request', function () {
    it('should only serve 2MB of data', function (done) { // Will attempt to fetch a 4.3MB file
        server
        .get('/https://01.keybase.pub/big.jpg')
        .expect(res => res.body.length < 2e6)
        .expect(200, done);
    });
});
<commit_msg>use dropbox-hosted image for now<commit_after>/* eslint-disable no-unused-vars */
const supertest = require('supertest');
const server = supertest(require('../../modules/server.js'));

describe('Large file request', function () {
    it('should only serve 2MB of data', function (done) { // Will attempt to fetch a 3.1MB file
        server
        .get('/https://www.dropbox.com/s/pc97egxsgy1qjq3/big.jpg?dl=1')
        .expect(function (res) {
            res.body.length < 2e6;
        })
        .expect(200, done);
    });
});

{'fraction_non_alphanumeric': 0.1720647773279352, 'fraction_numerical': 0.02327935222672065, 'mean_word_length': 2.8038461538461537, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, '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': '3073667', 'n_tokens_mistral': 322, 'n_tokens_neox': 308, 'n_words': 75}