| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e039f2b commit 3bc8d27
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -170,4 +170,16 @@ describe('.env supports edge cases', () => { | |||
| 170 | 170 | assert.strictEqual(SingleQuotesChild.stderr, ''); | |
| 171 | 171 | assert.strictEqual(SingleQuotesChild.code, 0); | |
| 172 | 172 | }); | |
| 173 | + | ||
| 174 | + it('should reject invalid env file flag', async () => { | ||
| 175 | + const child = await common.spawnPromisified( | ||
| 176 | + process.execPath, | ||
| 177 | + ['--env-file-ABCD', validEnvFilePath], | ||
| 178 | + { cwd: __dirname }, | ||
| 179 | + ); | ||
| 180 | + | ||
| 181 | + assert.strictEqual(child.stdout, ''); | ||
| 182 | + assert.strictEqual(child.code, 9); | ||
| 183 | + assert.match(child.stderr, /bad option: --env-file-ABCD/); | ||
| 184 | + }); | ||
| 173 | 185 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments