UNPKG

@wordpress/block-library

Version:
11 lines (8 loc) 310 B
import { describe, expect, it } from 'vitest'; import { getLevelFromHeadingNodeName } from '../shared'; describe( 'getLevelFromHeadingNodeName()', () => { it( 'should return a numeric value from nodeName', () => { const level = getLevelFromHeadingNodeName( 'H4' ); expect( level ).toBe( 4 ); } ); } );