We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f143ee commit 15ecf13Copy full SHA for 15ecf13
test/api-spec.js
@@ -153,6 +153,13 @@ describe('api', function () {
153
asar.extractAll('test/input/bad-symlink.asar', 'tmp/bad-symlink/');
154
});
155
156
+ it('should throw when packaging symlink outside package', async function () {
157
+ const src = 'test/input/packthis-with-bad-symlink/';
158
+ const out = 'tmp/packthis-read-stream-bad-symlink.asar';
159
+ assert.rejects(async () => {
160
+ await asar.createPackage(src, out);
161
+ });
162
163
}
164
it('should handle multibyte characters in paths', async () => {
165
await asar.createPackageWithOptions(
0 commit comments