test: update context.test.ts test

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
Alfi Maulana 2024-11-26 14:22:09 +07:00
parent e3554b2845
commit 7e8f882e8c
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -99,7 +99,7 @@ describe("get action context", () => {
{ {
name: "with additional options specified", name: "with additional options specified",
inputs: { inputs: {
options: `BUILD_TESTING=ON BUILD_EXAMPLES=ON\nBUILD_DOCS=ON FOO="BAR BAZ"`, options: `BUILD_TESTING=ON BUILD_EXAMPLES=ON\nBUILD_DOCS=ON "FOO=BAR BAZ"`,
}, },
expectedContext: { expectedContext: {
configure: { configure: {
@ -150,7 +150,7 @@ describe("get action context", () => {
"cxx-compiler": "clang++", "cxx-compiler": "clang++",
"c-flags": "-Werror -Wall\n-Wextra", "c-flags": "-Werror -Wall\n-Wextra",
"cxx-flags": "-Werror -Wall\n-Wextra -Wpedantic", "cxx-flags": "-Werror -Wall\n-Wextra -Wpedantic",
options: `BUILD_TESTING=ON BUILD_EXAMPLES=ON\nBUILD_DOCS=ON FOO="BAR BAZ"`, options: `BUILD_TESTING=ON BUILD_EXAMPLES=ON\nBUILD_DOCS=ON "FOO=BAR BAZ"`,
args: `-Wdev -Wdeprecated\n--fresh --foo "bar baz"`, args: `-Wdev -Wdeprecated\n--fresh --foo "bar baz"`,
"run-build": "true", "run-build": "true",
"build-args": `--target foo\n--parallel 8 --foo "bar baz"`, "build-args": `--target foo\n--parallel 8 --foo "bar baz"`,