Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Jul 16, 2024
1 parent 210ba7e commit 5fc6bdf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,25 @@ describe('get()', () => {

it('should get an 64-bit integer value', { timeout: 360000 }, async () => {
await new Promise<void>(resolve => {
console.log('-'.repeat(80));
const child = spawn(
'reg',
['query', 'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion', '/s'],
{ stdio: 'pipe' }
);
const buffer: string[] = [];
child.stdout.on('data', data => {
const s = data.toString();
if (buffer.length > 10) {
buffer.unshift();
}
buffer.push(s);
if (s.includes('REG_QWORD')) {
console.log(s);
console.log('-'.repeat(80));
console.log(buffer.join('\n'));
console.log('-'.repeat(80));
}
});
child.on('close', () => {
console.log('-'.repeat(80));
resolve();
});
});
Expand Down

0 comments on commit 5fc6bdf

Please sign in to comment.