import { describe, it, expect } from 'vitest'; import { load } from './index.js'; describe('.load', () => { it('(html) : should retain original root after creating a new node', () => { const $ = load('
', { xml: true, }); expect($('script')[0].children[0].type).toBe('tag'); }); it('(buffer) : should accept a buffer', () => { const html = '