Skip to content

Commit

Permalink
Trying another key
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Jul 16, 2024
1 parent 7d555b6 commit 51639d9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,15 @@ describe('get()', () => {
'reg',
[
'query',
'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Diagnostics\\DiagTrack'
'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Diagnostics\\DiagTrack\\TraceManager'
],
{ stdio: 'inherit' }
);
const value = winreglib.get(
'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Diagnostics\\DiagTrack',
'TriggerCount'
'HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Diagnostics\\DiagTrack\\TraceManager',
'diagStartTime'
) as number;
expect(value).toBeTypeOf('number');
expect(value).toBeGreaterThanOrEqual(0);
});

it('should get a binary value', () => {
Expand Down

0 comments on commit 51639d9

Please sign in to comment.