mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-26 02:11:54 +00:00
nested func example broken
This commit is contained in:
@ -17,6 +17,7 @@ import {topologyCall} from "./examples/topologyCall";
|
||||
import {foldJoinCall} from "./examples/foldJoinCall";
|
||||
import {useOptionalCall} from "./examples/useOptionalCall";
|
||||
import {viaCall} from "./examples/viaCall";
|
||||
import {nestedFuncsCall} from "./examples/nestedFuncsCall";
|
||||
let deepEqual = require('deep-equal')
|
||||
|
||||
function checkCall(name: string, expected: any, actual: any, callBackOnError: () => void) {
|
||||
@ -100,6 +101,9 @@ const main = async () => {
|
||||
// via.aqua
|
||||
let viaResult = await viaCall(client)
|
||||
|
||||
// nestedFuncs.aqua
|
||||
let nestedFuncsResult = await nestedFuncsCall(client)
|
||||
|
||||
await client.disconnect();
|
||||
|
||||
let success = true;
|
||||
@ -135,6 +139,8 @@ const main = async () => {
|
||||
|
||||
checkCallBy("via", viaResult, (res) => res.every( (val, i, arr) => deepEqual(val, arr[0]) ), cb)
|
||||
|
||||
checkCall("nestedFuncsCall", optionResult, "some-str", cb)
|
||||
|
||||
if (success) {
|
||||
process.exit(0)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user