Skip to content

Commit

Permalink
update replace tokens test
Browse files Browse the repository at this point in the history
  • Loading branch information
qetza committed Mar 22, 2024
1 parent 200b149 commit 00817e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tasks/ReplaceTokensV6/tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,8 @@ describe('ReplaceTokens v6 L0 suite', function () {

process.env['__telemetryOptout__'] = 'true';
process.env['__sources__'] = input;
process.env['__missingVarAction__'] = 'replace';
process.env['__missingVarDefault__'] = 'DEFAULT';
process.env['__root__'] = path.join(data, '..');
process.env['__VARS__'] = '{ "var1": "env", "var2": "env" }';
process.env['__additionalVariables__'] = `
Expand Down
3 changes: 2 additions & 1 deletion tasks/ReplaceTokensV6/tests/_data/file.expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ var_json: file
var_yaml1: file
var_yaml2: file
var.yml1: file
var.yml2: inline
var.yml2: inline
unknown: DEFAULT
3 changes: 2 additions & 1 deletion tasks/ReplaceTokensV6/tests/_data/file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ var_json: #{var_json}#
var_yaml1: #{var_yaml1}#
var_yaml2: #{var_yaml2}#
var.yml1: #{var.yml1}#
var.yml2: #{var.yml2}#
var.yml2: #{var.yml2}#
unknown: #{unknown}#

0 comments on commit 00817e6

Please sign in to comment.