-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: replace environmental variable with in binary expression (#7954
- Loading branch information
1 parent
03ec6d1
commit f29c181
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/core/integration-tests/test/integration/env-binary-in-expression/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const existVar = 'ABC' in process.env ? 'correct' : 'incorrect'; | ||
const notExistVar = 'DEF' in process.env ? 'incorrect' : 'correct'; | ||
|
||
module.exports = { | ||
existVar, | ||
notExistVar, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters