Skip to content

Commit 65cf81f

Browse files
Update test with appver parameter
1 parent eadd170 commit 65cf81f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jest.mock('react-native-device-info', () => ({
5050

5151
getBrand: () => '__DeviceInfoBrand__',
5252
getDeviceId: () => '__DeviceInfoDeviceId__',
53+
getVersion: () => '__VersionNumber__',
5354
},
5455
}), { virtual: true });
5556

@@ -102,6 +103,7 @@ test('regular mode', async () => {
102103
+ '&d=__NativeAdvertisingId__'
103104
+ '&idfv=__DeviceInfoUniqueId__'
104105
+ '&appid=__DeviceInfoBundleId__'
106+
+ '&appver=__VersionNumber__'
105107
+ '&os=__DeviceInfoSystemName__'
106108
+ '&osv=__DeviceInfoSystemVersion__'
107109
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
@@ -117,6 +119,7 @@ test('regular mode', async () => {
117119
+ '&d=__NativeAdvertisingId__'
118120
+ '&idfv=__DeviceInfoUniqueId__'
119121
+ '&appid=__DeviceInfoBundleId__'
122+
+ '&appver=__VersionNumber__'
120123
+ '&os=__DeviceInfoSystemName__'
121124
+ '&osv=__DeviceInfoSystemVersion__'
122125
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
@@ -141,6 +144,7 @@ test('legacy idfa', async () => {
141144
+ '&d=__NativeAdvertisingLegacyId__'
142145
+ '&idfv=__DeviceInfoUniqueId__'
143146
+ '&appid=__DeviceInfoBundleId__'
147+
+ '&appver=__VersionNumber__'
144148
+ '&os=__DeviceInfoSystemName__'
145149
+ '&osv=__DeviceInfoSystemVersion__'
146150
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
@@ -173,6 +177,7 @@ test('dnt mode', async () => {
173177
+ '?t=__FetchMediaCode__'
174178
+ '&rnd=4fzzzxjylrx'
175179
+ '&appid=__DeviceInfoBundleId__'
180+
+ '&appver=__VersionNumber__'
176181
+ '&os=__DeviceInfoSystemName__'
177182
+ '&osv=__DeviceInfoSystemVersion__'
178183
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'
@@ -186,6 +191,7 @@ test('dnt mode', async () => {
186191
+ '?t=__FetchSectionCode__'
187192
+ '&rnd=4fzzzxjylrx'
188193
+ '&appid=__DeviceInfoBundleId__'
194+
+ '&appver=__VersionNumber__'
189195
+ '&os=__DeviceInfoSystemName__'
190196
+ '&osv=__DeviceInfoSystemVersion__'
191197
+ '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'

0 commit comments

Comments
 (0)