<commit_before>const tape = require('tape');
const mjpage = require('../lib/main.js').mjpage;

tape('Document without math', function(t) {
    t.plan(2);
    const input = '';
    mjpage(input, {
        format: ["TeX"]
    }, {
        svg: true,
        useGlobalCache: true
    }, function(output) {
        t.ok(output.indexOf('<defs id="MathJax_SVG_glyphs">') === -1, '<defs> not added')
    });
    mjpage(input, {
        format: ["TeX"]
    }, {
        html: true
    }, function(output) {
        t.ok(output.indexOf('<style>') === -1, 'style not added')
    });
});<commit_msg>[test] issue16: fix potential false negative<commit_after>const tape = require('tape');
const mjpage = require('../lib/main.js').mjpage;

tape('Document without math', function(t) {
    t.plan(2);
    const input = '';
    mjpage(input, {
        format: ["TeX"]
    }, {
        svg: true,
        useGlobalCache: true
    }, function(output) {
        t.ok(output.indexOf('<defs id="MathJax_SVG_glyphs">') === -1, '<defs> not added')
    });
    mjpage(input, {
        format: ["TeX"]
    }, {
        html: true
    }, function(output) {
        t.ok(output.indexOf('<style') === -1, 'style not added')
    });
});
{'fraction_non_alphanumeric': 0.20066334991708126, 'fraction_numerical': 0.006633499170812604, 'mean_word_length': 2.55, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 8, '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': '3255552', 'n_tokens_mistral': 424, 'n_tokens_neox': 407, 'n_words': 81}