GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: add missing test for env file · nodejs/node@3bc8d27

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-dotenv-edge-cases.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-dotenv-edge-cases.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-dotenv-edge-cases.js
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,16 @@ describe('.env supports edge cases', () => {
170170
assert.strictEqual(SingleQuotesChild.stderr, '');
171171
assert.strictEqual(SingleQuotesChild.code, 0);
172172
});
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+
});
173185
});

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.