From d8c5edcccaf589627914c565da97eb770d86d056 Mon Sep 17 00:00:00 2001 From: Geoffrey Hendrey Date: Fri, 22 Dec 2023 16:43:15 -0800 Subject: [PATCH] fix README test expression --- README.md | 8 +++----- src/TestUtils.ts | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cee1a6dd..498bad82 100644 --- a/README.md +++ b/README.md @@ -1726,11 +1726,11 @@ not support the $open function. However, the CLI/REPL which are for local usage programs that want to allow properly guarded `$open` operations may inject a `$open` function of their choosing into the TemplateProcessor contexet. $open accepts a relative path, and parses the JSON or YAML file on that path into an object. -```json [false, false, false, "a.c='the answer is: 42' and b.c='the answer is: 42'", false] +```json [false, "true", false, "a.c='the answer is: 42' and b.c='the answer is: 42'", "true"] > .note This shows two equivalent ways to open a json or yaml file using $open "=============================================================" > .cd example -"Current directory changed to: /Users/ghendrey/proj/jsonataexperiments/example" +"Current directory changed to: /Users/falken/proj/jsonataexperiments/example" > .init -f "importLocal.json" { "a": "${'ex01.json'~>$open~>$import}", @@ -1750,9 +1750,7 @@ an object. } } > .cd .. -"Current directory changed to: /Users/ghendrey/proj/jsonataexperiments" - - +"Current directory changed to: /Users/falken/proj/jsonataexperiments" ``` # Understanding Plans This information is to explain the planning algorithms to comitters. As a user you do not need to understand how diff --git a/src/TestUtils.ts b/src/TestUtils.ts index 67419cf1..b525c8c6 100644 --- a/src/TestUtils.ts +++ b/src/TestUtils.ts @@ -109,7 +109,7 @@ function runMarkdownTests(testData: CommandAndResponse[], cliCore:CliCore, print expect(responseNormalized).toBeDefined(); } } - }, 30000); // set timeout to 30 seconds for each test + }, 100000); // set timeout to 100 seconds for each test }); }finally { cliCore.close();