fix: added missing translation

This commit is contained in:
Pragadesh-45 2024-10-28 14:58:03 +05:30
parent 6588dcf2fd
commit d1ebfbe29c
2 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@ if (!SERVER_RENDERED) {
'req.getExecutionMode()',
'bru',
'bru.cwd()',
'bru.getEnvName(key)',
'bru.getEnvName()',
'bru.getProcessEnv(key)',
'bru.hasEnvVar(key)',
'bru.getEnvVar(key)',

View File

@ -17,7 +17,8 @@ const replacements = {
'pm\\.response\\.code': 'res.getStatus()',
'pm\\.response\\.text\\(': 'res.getBody()?.toString(',
'pm\\.expect\\.fail\\(': 'expect.fail(',
'pm\\.response\\.responseTime': 'res.getResponseTime()'
'pm\\.response\\.responseTime': 'res.getResponseTime()',
'pm\\.environment\\.name': 'bru.getEnvName()'
};
const extendedReplacements = Object.keys(replacements).reduce((acc, key) => {