diff --git a/uni_modules/uts-tests/utssdk/KeyWord.uts b/uni_modules/uts-tests/utssdk/KeyWord.uts index aeea449069f4ca1a19655e734280ca898ff64fba..03daec50337ce71e822ba4ebc4224e41c81373cd 100644 --- a/uni_modules/uts-tests/utssdk/KeyWord.uts +++ b/uni_modules/uts-tests/utssdk/KeyWord.uts @@ -16,13 +16,21 @@ export function testKeyWord(): Result { }) test('typeof', () => { - let new1 = new User() - expect(typeof(new1)).toEqual('object') - expect(typeof(123456.789)).toEqual('number') - expect(typeof("hello world")).toEqual('string') - console.log(typeof([1,2,3])) - let arr1 = new Array() - console.log(arr1) + let new1 = new User() + expect(typeof(new1)).toEqual('object') + expect(typeof(123456.789)).toEqual('number') + expect(typeof(789778979798797987979)).toEqual('number') + expect(typeof(0.0)).toEqual('number') + expect(typeof("hello world")).toEqual('string') + expect(typeof([1,2,3])).toEqual('object') + expect(typeof(new Array())).toEqual('object') + expect(typeof(new Set())).toEqual('object') + expect(typeof(new Map())).toEqual('object') + expect(typeof(new Date())).toEqual('object') + expect(typeof("hello world")).toEqual('string') + // 原生对象 + expect(typeof(UTSAndroid.getUniActivity())).toEqual('object') + })