feat(tests): fully implemented test suite
This commit is contained in:
@ -29,7 +29,7 @@ tap.test('PDF-02: ZUGFeRD v1 Extraction - Basic Extraction', async (tools) => {
|
||||
|
||||
// Check if file exists and is readable
|
||||
const fileExists = await plugins.fs.pathExists(testFile);
|
||||
expect(fileExists).toBe(true);
|
||||
expect(fileExists).toBeTrue();
|
||||
|
||||
const fileStats = await plugins.fs.stat(testFile);
|
||||
tools.log(`File size: ${(fileStats.size / 1024).toFixed(1)}KB`);
|
||||
@ -233,8 +233,8 @@ tap.test('PDF-02: ZUGFeRD v1 Extraction - Format Validation', async (tools) => {
|
||||
tools.log(`- Is Well-Formed: ${formatChecks.isWellFormed}`);
|
||||
|
||||
// Basic format expectations
|
||||
expect(formatChecks.hasXmlDeclaration).toBe(true);
|
||||
expect(formatChecks.isWellFormed).toBe(true);
|
||||
expect(formatChecks.hasXmlDeclaration).toBeTrue();
|
||||
expect(formatChecks.isWellFormed).toBeTrue();
|
||||
|
||||
if (formatChecks.hasZugferdNamespace && formatChecks.hasInvoiceElements) {
|
||||
tools.log('✓ ZUGFeRD v1 format validation passed');
|
||||
|
Reference in New Issue
Block a user