diff --git a/test/api-spec.js b/test/api-spec.js index 2239d1a..2cd574c 100644 --- a/test/api-spec.js +++ b/test/api-spec.js @@ -107,4 +107,8 @@ describe('api', function () { asar.extractAll('test/expected/packthis-object-prototype.asar', 'tmp/packthis-object-prototype/') return compDirs('test/input/packthis-object-prototype/', 'tmp/packthis-object-prototype') }) + it('should stat a symlinked file', async () => { + const stats = asar.statFile('test/input/stat-symlink.asar', 'real.txt', true) + return assert.strictEqual(stats.size, 19) + }) }) diff --git a/test/input/stat-symlink.asar b/test/input/stat-symlink.asar new file mode 100644 index 0000000..2269106 Binary files /dev/null and b/test/input/stat-symlink.asar differ