From 475d6e58d1192ff0a9fce98a671841cab57d5ad8 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Sat, 26 Aug 2023 16:42:56 +0800 Subject: [PATCH] add isArray --- uni_modules/uts-tests/utssdk/KeyWord.uts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uni_modules/uts-tests/utssdk/KeyWord.uts b/uni_modules/uts-tests/utssdk/KeyWord.uts index a47d673..c4e9313 100644 --- a/uni_modules/uts-tests/utssdk/KeyWord.uts +++ b/uni_modules/uts-tests/utssdk/KeyWord.uts @@ -54,6 +54,12 @@ export function testKeyWord(): Result { expect(instanceRet4).toEqual(true) }) + test('isArray', () => { + let user1:any = new User() + expect(Array.isArray(user1)).toEqual(false) + expect(Array.isArray([1,2,3])).toEqual(true) + }) + }) } -- GitLab