From c0326f4d621e44118a60e629adce70b80f629519 Mon Sep 17 00:00:00 2001 From: Joe Skeen Date: Wed, 25 Nov 2015 14:29:34 -0700 Subject: [PATCH] Added additional test --- adm-zip/adm-zip-tests.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/adm-zip/adm-zip-tests.ts b/adm-zip/adm-zip-tests.ts index c1e62e7f2..93f8f2f2d 100644 --- a/adm-zip/adm-zip-tests.ts +++ b/adm-zip/adm-zip-tests.ts @@ -55,3 +55,7 @@ zip.extractEntryTo("folder/subfolder/myfile.txt", "/home/user/", true, true); // will extract the file myfile.txt from the archive to /home/user/myfile.txt zip.extractEntryTo("folder/subfolder/myfile.txt", "/home/user/", false, true); + +function isAdmZipEntry(obj: any): obj is AdmZip.IZipEntry { + return obj !== null && typeof obj === "object" && typeof obj['entryName'] === 'string'; +} \ No newline at end of file