mirror of
https://github.com/fluencelabs/signature-connector
synced 2025-04-25 06:02:13 +00:00
19 lines
777 B
TypeScript
19 lines
777 B
TypeScript
|
import {Result} from "../../assembly/index";
|
||
|
import "allocator/arena";
|
||
|
|
||
|
declare function logStr(str: string): void;
|
||
|
|
||
|
export class CrossModuleTest {
|
||
|
//TODO fix error: TypeError: WebAssembly Instantiation: Import #0 module="signature" error: module is not an object or function
|
||
|
//TODO that caused by importing methods from nonexisted module `signature` in test
|
||
|
/*static shouldReturnResultWithError(): bool {
|
||
|
let message = "[Error] Some error.";
|
||
|
let result = new Result(message);
|
||
|
|
||
|
assert(!result.checkPassed, "The message should be qualified as error.");
|
||
|
assert(result.payload == null, "Payload should be null on error.");
|
||
|
assert(result.errorMessage == message, "An error message should exist.");
|
||
|
return true;
|
||
|
}*/
|
||
|
}
|