<commit_before><commit_msg>Add test for maxRuns option<commit_after>describe('after clearing and saving 5 runs', () => {
    beforeEach(async () => {
        await playbyplay.clear();
        await playbyplay.save('1st');
        await playbyplay.save('2nd');
        await playbyplay.save('3rd');
        await playbyplay.save('4th');
        await playbyplay.save('5th');
    });

    it('should load 5 runs', async () => {
        const runs = await playbyplay.load();
        expect(runs).to.deep.equal(['1st', '2nd', '3rd', '4th', '5th']);
    });

    it('should only keep 3 runs if saving with maxRuns = 3', async () => {
        await playbyplay.save('6th', {maxRuns: 3});
        const runs = await playbyplay.load();
        expect(runs).to.deep.equal(['4th', '5th', '6th']);
    });

    after(playbyplay.clear);
});
{'fraction_non_alphanumeric': 0.1837968561064087, 'fraction_numerical': 0.022974607013301087, 'mean_word_length': 2.869158878504673, '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': '5862458', 'n_tokens_mistral': 276, 'n_tokens_neox': 273, 'n_words': 60}