Closed nhz-io closed 7 years ago
Similar cases happen on Appveyor (Probably because of different Windows version)
1) regedit list keys and values in a sub key HKLM\software\microsoft\windows\CurrentVersion 64bit:
Uncaught AssertionError: expected [
'AccountPicture',
'AdvertisingInfo',
'Authentication',
'AutoRotation',
'BITS',
'CEIPData',
'CEIPRole',
'Component Based Servicing',
'ConnectedSearch',
'Control Panel',
'Controls Folder',
'DateTime',
'App Management',
'Device Installer',
'Device Metadata',
'DeviceAccess',
'DeviceSetup',
'Diagnostics',
'DPX',
'DriverSearching',
'EventCollector',
'EventForwarding',
'Explorer',
'App Paths',
'Ext',
'FlightsInformation',
'Group Policy',
'GWX',
'HelpAndSupport',
'Hints',
'HomeGroup',
'IME',
'ImmersiveShell',
'Installer',
'AppHost',
'Internet Settings',
'Lock Screen',
'Management Infrastructure',
'Media Center',
'MMDevices',
'NetCache',
'NetworkServiceTriggers',
'OEMInformation',
'OOBE',
'OpenWith',
'Applets',
'Parental Controls',
'Personalization',
'PhotoPropertyHandler',
'policies',
'PrecisionTouchPad',
'PreviewHandlers',
'PropertySystem',
'PushNotifications',
'Reliability',
'RenameFiles',
'AppModel',
'Run',
'RunOnce',
'SelectiveRemoteWipe',
'SettingSync',
'Setup',
'SharedDLLs',
'Shell Extensions',
'ShellCompatibility',
'ShellServiceObjectDelayLoad',
'SideBySide',
'AppReadiness',
'SMDEn',
'SMI',
'Store',
'StructuredQuery',
'Syncmgr',
'SyncShareSrv',
'SysPrepTapi',
'SystemProtectedUserData',
'Tablet PC',
'Telephony',
'Appx',
'ThemeManager',
'Themes',
'TouchKeyboard',
'Uninstall',
'URL',
'UserPictureChange',
'UserState',
'Utilman',
'WebCheck',
'WindowsStore',
'Audio',
'WindowsUpdate',
'WINEVT',
'Wordpad',
'WSMAN',
'WUSA',
'XWizards'
] to contain 'Policies'
at Proxy.fail (C:\projects\node-regedit\node_modules\should\lib\assertion.js:228:17)
at Proxy.prop.(anonymous function) (C:\projects\node-regedit\node_modules\should\lib\assertion.js:69:14)
at C:\projects\node-regedit\test\regedit.test.js:68:33
at C:\projects\node-regedit\index.js:243:13
at ChildProcess.exithandler (child_process.js:195:7)
at maybeClose (internal/child_process.js:886:16)
at Socket.<anonymous> (internal/child_process.js:342:11)
at Pipe._handle.close [as _onclose] (net.js:497:12)
Tests on my local vm (WIN10 x64)
The test is looking for
Software
key and its there, just full capsSOFTWARE
As the keys in registry are case-insensitive imho we should ignore case in tests