<commit_before>/**
 * @description 菜单配置 test
 * @author wangfupeng
 */

import createEditor from '../../helpers/create-editor'

test('菜单数量', () => {
    const editor = createEditor(document, 'div1')
    const menus = editor.config.menus
    const $toolbarChildren = editor.$toolbarElem.childNodes() || []
    let childrenLen = $toolbarChildren.length
    if (editor.config.showFullScreen) childrenLen = childrenLen - 1
    // config.menus 数量，等于 toolbar 菜单的数量<commit_msg>test: 菜单数量测试用例修改<commit_after>/**
 * @description 菜单配置 test
 * @author wangfupeng
 */

import createEditor from '../../helpers/create-editor'

test('菜单数量', () => {
    const editor = createEditor(document, 'div1')
    const menus = editor.config.menus
    const $toolbarChildren = editor.$toolbarElem.childNodes() || []
    let childrenLen = $toolbarChildren.length - 1
    if (editor.config.showFullScreen) childrenLen = childrenLen - 1
    // config.menus 数量，等于 toolbar 菜单的数量
{'fraction_non_alphanumeric': 0.13727560718057022, 'fraction_numerical': 0.005279831045406547, 'mean_word_length': 3.763819095477387, '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': '4488279', 'n_tokens_mistral': 316, 'n_tokens_neox': 329, 'n_words': 67}