add test description

This commit is contained in:
ocasta181 committed 2025-03-11 15:06:24 -07:00
1 parent e11ad166e6
commit 48ea04f2ea
1 file changed
+5
+5
View File
@@ -72,6 +72,11 @@ describe("content-size", () => {
expect(result.wouldExceedLimit).to.equal(false)
})
/**
* Verifies that estimateFileSize properly throws an error when given a
* non-existent file path, which is important for error handling in the application.
* The test expects fs.stat() inside estimateFileSize to fail and throw.
*/
it("throws error for non-existent file", async () => {
const nonExistentPath = path.join(os.tmpdir(), "non-existent.txt")
try {