Skip to content

Commit

Permalink
Add test failing to stat symlinked file
Browse files Browse the repository at this point in the history
This demonstrates issue electron#248
  • Loading branch information
AndreasFranek committed Aug 12, 2024
1 parent a61839f commit 17cbb40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/api-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})
Binary file added test/input/stat-symlink.asar
Binary file not shown.

0 comments on commit 17cbb40

Please sign in to comment.