Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Test HAR's table through CSV, which every platform has

cre8ive-marketinge3b85b58f14f
diff --git a/tests/Filee.Engines.Tests/NewExtensionsRealTests.cs b/tests/Filee.Engines.Tests/NewExtensionsRealTests.cs
index 17e8990f..8106e9c3 100644
--- a/tests/Filee.Engines.Tests/NewExtensionsRealTests.cs
+++ b/tests/Filee.Engines.Tests/NewExtensionsRealTests.cs
@@ -56,10 +56,10 @@ public class NewExtensionsRealTests(EngineFixture fx) : IClassFixture<EngineFixt
"response": {"status": 200, "statusText": "OK"}}]}}
""", TestContext.Current.CancellationToken);
- var markdown = await File.ReadAllTextAsync(await ConvertAsync(har, "md"), TestContext.Current.CancellationToken);
-
- // One row per request: method, address and status side by side.
- Assert.Contains("| GET | https://example.com/api/items | 200 |", markdown);
+ // One row per request: method, address and status side by side. CSV is the table step every table route
+ // (Markdown, spreadsheets, PDF) starts from; Markdown itself goes through Unhwp, which Linux ARM64 lacks.
+ var csv = await File.ReadAllTextAsync(await ConvertAsync(har, "csv"), TestContext.Current.CancellationToken);
+ Assert.Contains("GET,https://example.com/api/items,200", csv);
var json = await File.ReadAllTextAsync(await ConvertAsync(har, "json"), TestContext.Current.CancellationToken);
Assert.Contains("\"creator\"", json); // the whole log, as it was
}