<commit_before>describe('The leafletDrawTranslations factory', function () {
    let L,
        leafletDrawTranslations;

    beforeEach(function () {
        angular.mock.module(
            'dpMap'
        );

        angular.mock.inject((_L_, _leafletDrawTranslations_) => {
            L = _L_;
            leafletDrawTranslations = _leafletDrawTranslations_;
        });
    });

    it('sets all L.drawLocal texts to ampty string', function () {
        expect(L.drawLocal.draw.toolbar.actions.title).not.toBe('');
        expect(L.drawLocal.draw.toolbar.actions.text).not.toBe('');

        leafletDrawTranslations.initialize();

        // Test any arbitrary texts to be set to ''
        expect(L.drawLocal.draw.toolbar.actions.title).toBe('');
        expect(L.drawLocal.draw.toolbar.actions.text).toBe('');
    });
});
<commit_msg>Coverage of leaflet-draw-translations<commit_after>describe('The leafletDrawTranslations factory', function () {
    let L,
        leafletDrawTranslations;

    beforeEach(function () {
        angular.mock.module(
            'dpMap'
        );

        angular.mock.inject((_L_, _leafletDrawTranslations_) => {
            L = _L_;
            leafletDrawTranslations = _leafletDrawTranslations_;
        });
    });

    it('sets all L.drawLocal texts to ampty string', function () {
        expect(L.drawLocal.draw.toolbar.actions.title).not.toBe('');
        expect(L.drawLocal.draw.toolbar.actions.text).not.toBe('');

        L.drawLocal.test = 5;

        leafletDrawTranslations.initialize();

        // Test any arbitrary texts to be set to ''
        expect(L.drawLocal.draw.toolbar.actions.title).toBe('');
        expect(L.drawLocal.draw.toolbar.actions.text).toBe('');
    });

    it('Leaves all L.drawLocal non-string values untouched', function () {
        L.drawLocal.draw.toolbar.actions.title = 10;

        leafletDrawTranslations.initialize();

        // Test any arbitrary texts to be set to ''
        expect(L.drawLocal.draw.toolbar.actions.title).toBe(10);
        expect(L.drawLocal.draw.toolbar.actions.text).toBe('');
    });
});

{'fraction_non_alphanumeric': 0.13919239904988123, 'fraction_numerical': 0.0023752969121140144, 'mean_word_length': 2.5574324324324325, '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': '3635830', 'n_tokens_mistral': 636, 'n_tokens_neox': 614, 'n_words': 98}