NativeCode.uts 470 字节
Newer Older
杜庆泉's avatar
杜庆泉 已提交
1 2 3 4 5 6 7 8
import { describe, test, expect, Result } from './tests.uts'

export function testNativeCode(): Result {
    return describe("mix-native-code-work", () => {
        test('getStrFromNativeCode', () => {
            // #ifdef APP-ANDROID
             expect(NativeCode.getNativeStr()).toEqual("android-code");
            // #endif
lizhongyi_'s avatar
lizhongyi_ 已提交
9 10 11
            // #ifdef APP-IOS
             expect(NativeCode.getNativeStr()).toEqual("iOS-code");
            // #endif
杜庆泉's avatar
杜庆泉 已提交
12 13 14
        })
    })
}