Skip to content

Commit

Permalink
Update test with appver parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriiHAP committed Nov 16, 2021
1 parent eadd170 commit 65cf81f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jest.mock('react-native-device-info', () => ({

getBrand: () => '__DeviceInfoBrand__',
getDeviceId: () => '__DeviceInfoDeviceId__',
getVersion: () => '__VersionNumber__',
},
}), { virtual: true });

Expand Down Expand Up @@ -102,6 +103,7 @@ test('regular mode', async () => {
+ '&d=__NativeAdvertisingId__'
+ '&idfv=__DeviceInfoUniqueId__'
+ '&appid=__DeviceInfoBundleId__'
+ '&appver=__VersionNumber__'
+ '&os=__DeviceInfoSystemName__'
+ '&osv=__DeviceInfoSystemVersion__'
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
Expand All @@ -117,6 +119,7 @@ test('regular mode', async () => {
+ '&d=__NativeAdvertisingId__'
+ '&idfv=__DeviceInfoUniqueId__'
+ '&appid=__DeviceInfoBundleId__'
+ '&appver=__VersionNumber__'
+ '&os=__DeviceInfoSystemName__'
+ '&osv=__DeviceInfoSystemVersion__'
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
Expand All @@ -141,6 +144,7 @@ test('legacy idfa', async () => {
+ '&d=__NativeAdvertisingLegacyId__'
+ '&idfv=__DeviceInfoUniqueId__'
+ '&appid=__DeviceInfoBundleId__'
+ '&appver=__VersionNumber__'
+ '&os=__DeviceInfoSystemName__'
+ '&osv=__DeviceInfoSystemVersion__'
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
Expand Down Expand Up @@ -173,6 +177,7 @@ test('dnt mode', async () => {
+ '?t=__FetchMediaCode__'
+ '&rnd=4fzzzxjylrx'
+ '&appid=__DeviceInfoBundleId__'
+ '&appver=__VersionNumber__'
+ '&os=__DeviceInfoSystemName__'
+ '&osv=__DeviceInfoSystemVersion__'
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
Expand All @@ -186,6 +191,7 @@ test('dnt mode', async () => {
+ '?t=__FetchSectionCode__'
+ '&rnd=4fzzzxjylrx'
+ '&appid=__DeviceInfoBundleId__'
+ '&appver=__VersionNumber__'
+ '&os=__DeviceInfoSystemName__'
+ '&osv=__DeviceInfoSystemVersion__'
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
Expand Down

0 comments on commit 65cf81f

Please sign in to comment.