import { getHighlighter } from '../index' ; test ( 'Correctly highlights LaTeX (#152)' , async ( ) => { const highlighter = await getHighlighter ( { theme : 'nord' , langs : [ 'tex' , 'latex' ] } ) ; const out = highlighter . codeToThemedTokens ( `%\\usepackage{pkg}` , 'latex' , 'nord' , { includeExplanation : true } ) ; expect ( out ) . toMatchSnapshot ( ) ; } ) ; test ( 'Correctly handles variable length lookbehind (#264)' , async ( ) => { const highlighter = await getHighlighter ( { theme : 'light-plus' , langs : [ 'svelte' ] } ) ; const out = highlighter . codeToThemedTokens ( `<div let:x={a} />` , 'svelte' , 'light-plus' , { includeExplanation : true } ) ; expect ( out ) . toMatchSnapshot ( ) ; } ) ;