From 65cf81f846a2f133f55b466d45a885b6b2dedc2f Mon Sep 17 00:00:00 2001 From: Valerii Haliuta Date: Tue, 16 Nov 2021 14:57:04 +0200 Subject: [PATCH] Update test with appver parameter --- test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.js b/test.js index 4e412f8..6856610 100644 --- a/test.js +++ b/test.js @@ -50,6 +50,7 @@ jest.mock('react-native-device-info', () => ({ getBrand: () => '__DeviceInfoBrand__', getDeviceId: () => '__DeviceInfoDeviceId__', + getVersion: () => '__VersionNumber__', }, }), { virtual: true }); @@ -102,6 +103,7 @@ test('regular mode', async () => { + '&d=__NativeAdvertisingId__' + '&idfv=__DeviceInfoUniqueId__' + '&appid=__DeviceInfoBundleId__' + + '&appver=__VersionNumber__' + '&os=__DeviceInfoSystemName__' + '&osv=__DeviceInfoSystemVersion__' + '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__' @@ -117,6 +119,7 @@ test('regular mode', async () => { + '&d=__NativeAdvertisingId__' + '&idfv=__DeviceInfoUniqueId__' + '&appid=__DeviceInfoBundleId__' + + '&appver=__VersionNumber__' + '&os=__DeviceInfoSystemName__' + '&osv=__DeviceInfoSystemVersion__' + '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__' @@ -141,6 +144,7 @@ test('legacy idfa', async () => { + '&d=__NativeAdvertisingLegacyId__' + '&idfv=__DeviceInfoUniqueId__' + '&appid=__DeviceInfoBundleId__' + + '&appver=__VersionNumber__' + '&os=__DeviceInfoSystemName__' + '&osv=__DeviceInfoSystemVersion__' + '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__' @@ -173,6 +177,7 @@ test('dnt mode', async () => { + '?t=__FetchMediaCode__' + '&rnd=4fzzzxjylrx' + '&appid=__DeviceInfoBundleId__' + + '&appver=__VersionNumber__' + '&os=__DeviceInfoSystemName__' + '&osv=__DeviceInfoSystemVersion__' + '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__' @@ -186,6 +191,7 @@ test('dnt mode', async () => { + '?t=__FetchSectionCode__' + '&rnd=4fzzzxjylrx' + '&appid=__DeviceInfoBundleId__' + + '&appver=__VersionNumber__' + '&os=__DeviceInfoSystemName__' + '&osv=__DeviceInfoSystemVersion__' + '&dn=__DeviceInfoBrand__%20__DeviceInfoDeviceId__'