提交 ae2eb2f3 编写于 作者: 杜庆泉's avatar 杜庆泉

补充提交警告注解

上级 08e689ff
import { describe, test, expect,expectNumber, Result } from './tests.uts'
// #ifdef APP-ANDROID
@UTSAndroid.Suppress("USELESS_ELVIS")
// #endif
export function testOperators(): Result {
return describe("Operators", () => {
test('+', () => {
......@@ -239,6 +242,7 @@ export function testOperators(): Result {
a *= 3;
expect(a).toEqual(6);
})
test('??', () => {
const foo = null ?? 'default string';
expect(foo).toEqual("default string");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册