Skip to content

Commit

Permalink
fix README test expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Hendrey committed Dec 23, 2023
1 parent e4a0f81 commit d8c5edc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d8c5edc

Please sign in to comment.