import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as einvoice from '../../../ts/index.js';
import * as plugins from '../../plugins.js';
tap.test('PARSE-10: CDATA Section Handling in e-invoices', async () => {
console.log('Testing CDATA section handling in e-invoices...\n');
// Test basic CDATA sections in invoice fields
const cdataTests = [
{
name: 'Simple CDATA content in notes',
xml: `
CDATA-001
& " ']]>
`,
expectedNote: "This is plain text content with special chars: < > & \" '",
description: 'Basic CDATA section preserves special characters'
},
{
name: 'CDATA with XML-like content',
xml: `
CDATA-002
Invoice contains HTML markup