mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: internalModuleReadJSON for unpacked JSON (#26749)
This commit is contained in:
@@ -1444,7 +1444,8 @@ describe('asar package', function () {
|
||||
|
||||
it('reads a normal file with unpacked files', function () {
|
||||
const p = path.join(asarDir, 'unpack.asar', 'a.txt');
|
||||
expect(internalModuleReadJSON(p).toString().trim()).to.equal('a');
|
||||
const [s, c] = internalModuleReadJSON(p);
|
||||
expect([s.toString().trim(), c]).to.eql(['a', true]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user