<commit_before>module("DOM", {
    setup: function() {
        stubElementForDom = $('<a></a>');
        stubElementForPlugin = $('<a class="ezajaxer"></a>');
        ezajaxer = new Ezajaxer();
    },
    teardown: function() {
        stubElementForDom.unbind();
        delete stubElementForDom;
        delete stubElementForPlugin;
        delete ezajaxer;
    }
});

test("no change to element after calling ezajaxer on a non-tagged element", function() {
});

test("Testing marking of elements", function() {
	expect(3);
    equals(stubElementForDom.outerHTML(), ezajaxer.dom.mark(stubElementForDom).outerHTML(), "Element HTML should be the same");
    ok(ezajaxer.dom.hasMarker(stubElementForDom), "Testing marker added manually");
    stubElementForPlugin.ezajaxer();
    ok(ezajaxer.dom.hasMarker(stubElementForPlugin), "Testing marker added via plugin");
});
<commit_msg>Updated tests to account for default settings<commit_after>module("DOM", {
    setup: function() {
        stubElementForDom = $('<a></a>');
        stubElementForPlugin = $('<a class="ezajaxer"></a>');
        ezajaxer = new Ezajaxer();
    },
    teardown: function() {
        stubElementForDom.unbind();
        delete stubElementForDom;
        delete stubElementForPlugin;
        delete ezajaxer;
    }
});

test("no change to element after calling ezajaxer on a non-tagged element", function() {
});

test("Testing marking of elements", function() {
	expect(5);
    equals(stubElementForDom.outerHTML(), ezajaxer.dom.mark(stubElementForDom).outerHTML(), "Element HTML should be the same");
    equals(ezajaxer.dom.getMarker(stubElementForDom), Ezajaxer.defaults.marker, "Marker should be the default");
    ok(ezajaxer.dom.hasMarker(stubElementForDom), "Testing marker added manually");

    stubElementForPlugin.ezajaxer();
    equals(ezajaxer.dom.getMarker(stubElementForPlugin), Ezajaxer.defaults.marker, "Marker should be the default");
    ok(ezajaxer.dom.hasMarker(stubElementForPlugin), "Testing marker added via plugin");
});

{'fraction_non_alphanumeric': 0.13649851632047477, 'fraction_numerical': 0.0009891196834817012, 'mean_word_length': 4.213917525773196, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1620446', 'n_tokens_mistral': 598, 'n_tokens_neox': 608, 'n_words': 136}