diff --git a/uni_modules/uts-tests/utssdk/Error.uts b/uni_modules/uts-tests/utssdk/Error.uts index 12f4220e407b005dcc2fb4f76f8fb9f3b742ae62..f96c36cc71b3d9862f8192f774048806e96d0962 100644 --- a/uni_modules/uts-tests/utssdk/Error.uts +++ b/uni_modules/uts-tests/utssdk/Error.uts @@ -9,6 +9,11 @@ export function testError(): Result { expect((e as Error).message).toEqual("Whoops!"); } }) + + test('UniError', () => { + expect(new UniError().message).toEqual('') + expect(new UniError('Whoops!').message).toEqual('Whoops!') + }) // test('name', () => { // const e = new Error("Malformed input"); // e.name is 'Error' // e.name = "ParseError";