| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ec808b3 commit dfb0144
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -200,7 +200,7 @@ ParseResult ConfigReader::ParseOptions( | |||
| 200 | 200 | } else { | |
| 201 | 201 | FPrintF(stderr, | |
| 202 | 202 | "Unknown or not allowed option %s for namespace %s\n", | |
| 203 | - option_key.data(), | ||
| 203 | + option_key, | ||
| 204 | 204 | namespace_name.c_str()); | |
| 205 | 205 | return ParseResult::InvalidContent; | |
| 206 | 206 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -154,7 +154,7 @@ test('should throw at unknown flag', async () => { | |||
| 154 | 154 | fixtures.path('rc/unknown-flag.json'), | |
| 155 | 155 | '-p', '"Hello, World!"', | |
| 156 | 156 | ]); | |
| 157 | - match(result.stderr, /Unknown or not allowed option some-unknown-flag/); | ||
| 157 | + match(result.stderr, /Unknown or not allowed option some-unknown-flag for namespace nodeOptions/); | ||
| 158 | 158 | strictEqual(result.stdout, ''); | |
| 159 | 159 | strictEqual(result.code, 9); | |
| 160 | 160 | }); | |
@@ -166,7 +166,7 @@ test('should throw at flag not available in NODE_OPTIONS', async () => { | |||
| 166 | 166 | fixtures.path('rc/not-node-options-flag.json'), | |
| 167 | 167 | '-p', '"Hello, World!"', | |
| 168 | 168 | ]); | |
| 169 | - match(result.stderr, /Unknown or not allowed option test/); | ||
| 169 | + match(result.stderr, /Unknown or not allowed option test for namespace nodeOptions/); | ||
| 170 | 170 | strictEqual(result.stdout, ''); | |
| 171 | 171 | strictEqual(result.code, 9); | |
| 172 | 172 | }); | |
@@ -401,7 +401,7 @@ describe('namespace-scoped options', () => { | |||
| 401 | 401 | fixtures.path('rc/unknown-flag-namespace.json'), | |
| 402 | 402 | '-p', '"Hello, World!"', | |
| 403 | 403 | ]); | |
| 404 | - match(result.stderr, /Unknown or not allowed option unknown-flag/); | ||
| 404 | + match(result.stderr, /Unknown or not allowed option unknown-flag for namespace testRunner/); | ||
| 405 | 405 | strictEqual(result.stdout, ''); | |
| 406 | 406 | strictEqual(result.code, 9); | |
| 407 | 407 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments