github
1330 of 1478 branches covered (0.0%)
Branch coverage included in aggregate %.
0 of 22 new or added lines in 1 file covered. (0.0%)
5153 of 6207 relevant lines covered (83.02%)
45.05 hits per line
NEW
|
import { setMPSDK } from 'mp-base/src/utils'; |
× |
NEW
|
import PageSpy from 'mp-base/src'; |
× |
NEW
|
import Device from 'mp-base/src/device'; |
× |
NEW
|
import { SpyDevice } from 'packages/page-spy-types'; |
× |
NEW
|
import { SocketStoreBase } from 'base/src/socket-base'; |
× |
NEW
|
// reassign the global.mp to uni
|
× |
NEW
|
|
× |
NEW
|
declare const my: MPSDK;
|
× |
NEW
|
|
× |
NEW
|
setMPSDK(my); |
× |
NEW
|
|
× |
NEW
|
const info = my.getSystemInfoSync();
|
× |
NEW
|
Device.info.osType = info.platform.toLowerCase() as SpyDevice.OS; |
× |
NEW
|
Device.info.browserType = 'mp-alipay'; |
× |
NEW
|
Device.info.osVersion = info.system; |
× |
NEW
|
Device.info.browserVersion = info.version; |
× |
NEW
|
|
× |
NEW
|
SocketStoreBase.messageFilters.push((data) => { |
× |
NEW
|
return data.data;
|
× |
NEW
|
}); |
× |
NEW
|
|
× |
NEW
|
export default PageSpy; |
× |