uts.spec.ts.snap 1.3 KB
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6 7 8 9 10 11 12
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`code-frame-uts android 1`] = `
"error: The integer literal does not conform to the expected type String
at uni_modules/test-uts1/utssdk/index.uts:2:10
1  |  export function test(): string {
2  |    return 1;
   |            ^
3  |  }
4  |  


fxy060608's avatar
fxy060608 已提交
13
FAILURE: Build failed with an exception."
fxy060608's avatar
fxy060608 已提交
14 15 16 17 18 19 20 21 22 23 24 25
`;

exports[`code-frame-uts android 2`] = `
"error: The integer literal does not conform to the expected type String
at utssdk/test2/index.uts:2:10
1  |  export function test(): string {
2  |    return 2;
   |            ^
3  |  }
4  |  


fxy060608's avatar
fxy060608 已提交
26 27
FAILURE: Build failed with an exception."
`;
fxy060608's avatar
fxy060608 已提交
28

fxy060608's avatar
fxy060608 已提交
29 30 31 32 33 34 35 36 37
exports[`code-frame-uts ios 1`] = `
"CompileSwift normal armv7 uni_modules/test-uts1/utssdk/app-ios/src/index.swift (in target 'uni_modules_test_uts1' from project 'UTS')
error: cannot convert return expression of type 'Int' to return type 'String'
at uni_modules/test-uts1/utssdk/app-ios/index.uts:2:10
1  |  export function test(): string {
2  |    return 1;
   |            ^
3  |  }
4  |  
fxy060608's avatar
fxy060608 已提交
38 39


fxy060608's avatar
fxy060608 已提交
40 41 42 43 44 45 46 47 48
CompileSwift normal arm64 uni_modules/test-uts1/utssdk/app-ios/src/index.swift (in target 'uni_modules_test_uts1' from project 'UTS')
error: cannot convert return expression of type 'Int' to return type 'String'
at uni_modules/test-uts1/utssdk/app-ios/index.uts:2:10
1  |  export function test(): string {
2  |    return 1;
   |            ^
3  |  }
4  |  
"
fxy060608's avatar
fxy060608 已提交
49
`;