mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-21 01:45:24 -04:00
8b22f4f9fe
Signed-off-by: zhongjianfei <zhongjianfei@huawei.com> Change-Id: I2f4b3d48538c7e3d8172461fcb3b50f3299e339a
24 lines
700 B
JavaScript
24 lines
700 B
JavaScript
export function hasComplete(...args) {
|
|
if (args[0] === undefined) {
|
|
return
|
|
}
|
|
args[0].call(this)
|
|
}
|
|
|
|
export function getRandomArbitrary(min, max) {
|
|
return Math.random().toFixed(6) * (max - min) + min;
|
|
}
|
|
|
|
export const paramMock = {
|
|
businessErrorMock: {
|
|
code: '[PC Preview]: unknow code',
|
|
name: '[PC Preview]: unknow name',
|
|
message: '[PC Preview]: unknow message',
|
|
stack: '[PC Preview]: unknow stack'
|
|
},
|
|
paramNumberMock: "[PC Preview] unknow number",
|
|
paramStringMock: "[PC Preview] unknow string",
|
|
paramBooleanMock: "[PC Preview] unknow boolean",
|
|
paramObjectMock: "[PC Preview] unknow object",
|
|
paramArrayMock: "[PC Preview] unknow Array"
|
|
} |