<commit_before>var chai = require('chai');
var webdriver = require('selenium-webdriver');
var helpers = require('scribe-test-harness/helpers');

var expect = chai.expect;

var when = helpers.when;
var given = helpers.given;
var givenContentOf = helpers.givenContentOf;
var executeCommand = helpers.executeCommand;

var scribeNode;

var driver;
before(function () {
    driver = helpers.driver;
});

beforeEach(function() {
    scribeNode = helpers.scribeNode;
});

describe('scribe-plugin-content-cleaner', () => {
    givenContentOf('<p>content --</p>', () => {
        when('the command is executed', () => {
            beforeEach(() =>  {
                scribeNode.click();
                return executeCommand('cleanup');
            });

            it('should replace the -- with an emdash', () => {
                return scribeNode.getInnerHTML().then((innerHTML) => {
                    expect(innerHTML).to.include('<p>content —</p>');
                });
            });
        });
    });


    givenContentOf('<p>word  a   b</p>', () => {
        when('the command is executed', () => {
            beforeEach(() =>  {
                scribeNode.click();
                return executeCommand('cleanup');
            });


            it('should make all double (or more) whitespaces single spaces', () => {
                return scribeNode.getInnerHTML().then((innerHTML) => {
                    expect(innerHTML).to.include('<p>word a b</p>');
                });
            });
        });
    });

    givenContentOf('<p><br/><br><br/><br/></p>', () => {
        when('the command is executed', () => {
            beforeEach(() =>  {
                scribeNode.click();
                return executeCommand('cleanup');
            });


            it('should leave only a single BR', () => {
                return scribeNode.getInnerHTML().then((innerHTML) => {
                    expect(innerHTML).to.include('<p> <br></p>');
                });
            });
        });
    });
});
<commit_msg>Don't need to update test<commit_after>var chai = require('chai');
var webdriver = require('selenium-webdriver');
var helpers = require('scribe-test-harness/helpers');

var expect = chai.expect;

var when = helpers.when;
var given = helpers.given;
var givenContentOf = helpers.givenContentOf;
var executeCommand = helpers.executeCommand;

var scribeNode;

var driver;
before(function () {
    driver = helpers.driver;
});

beforeEach(function() {
    scribeNode = helpers.scribeNode;
});

describe('scribe-plugin-content-cleaner', () => {
    givenContentOf('<p>content --</p>', () => {
        when('the command is executed', () => {
            beforeEach(() =>  {
                scribeNode.click();
                return executeCommand('cleanup');
            });

            it('should replace the -- with an emdash', () => {
                return scribeNode.getInnerHTML().then((innerHTML) => {
                    expect(innerHTML).to.include('<p>content —</p>');
                });
            });
        });
    });


    givenContentOf('<p>word  a   b</p>', () => {
        when('the command is executed', () => {
            beforeEach(() =>  {
                scribeNode.click();
                return executeCommand('cleanup');
            });


            it('should make all double (or more) whitespaces single spaces', () => {
                return scribeNode.getInnerHTML().then((innerHTML) => {
                    expect(innerHTML).to.include('<p>word a b</p>');
                });
            });
        });
    });

    givenContentOf('<p><br/><br><br/></p>', () => {
        when('the command is executed', () => {
            beforeEach(() =>  {
                scribeNode.click();
                return executeCommand('cleanup');
            });


            it('should leave only a single BR', () => {
                return scribeNode.getInnerHTML().then((innerHTML) => {
                    expect(innerHTML).to.include('<p> <br></p>');
                });
            });
        });
    });
});

{'fraction_non_alphanumeric': 0.17416974169741697, 'fraction_numerical': 0.0, 'mean_word_length': 1.8513323983169705, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 68, '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': '2000595', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1076, 'n_words': 202}