Skip to content

Commit 3867978

Browse files
committed
add unit tests
1 parent 538a990 commit 3867978

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/registry-test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ if (process.platform === 'win32') {
104104
'SOFTWARE\\Microsoft\\Windows\\CurrentVersion',
105105
'ValueTestSz',
106106
RegistryValueType.REG_SZ,
107-
'Value 123 !'
107+
'Value 123 ! [email protected] (456)'
108108
)
109109
} catch (e) {
110110
console.log(e)
@@ -121,5 +121,13 @@ if (process.platform === 'win32') {
121121
)
122122
expect(result).toBeTruthy()
123123
})
124+
125+
it('can create a registry key in WOW6432Node', () => {
126+
const result = createKey(
127+
HKEY.HKEY_CURRENT_USER,
128+
'SOFTWARE\\WOW6432Node\\UnitTests'
129+
)
130+
expect(result).toBeTruthy()
131+
})
124132
})
125133
}

0 commit comments

Comments
 (0)