mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 22:45:25 +00:00
wip: safe mode updates (#2874)
* wip: safe mode updates * wip: safe mode updates
This commit is contained in:
@@ -142,10 +142,15 @@ const cleanJson = (data) => {
|
||||
}
|
||||
};
|
||||
|
||||
const appendAwaitToTestFunc = (str) => {
|
||||
return str.replace(/(?<!\.\s*)(?<!await\s)(test\()/g, 'await $1');
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
evaluateJsExpression,
|
||||
evaluateJsTemplateLiteral,
|
||||
createResponseParser,
|
||||
internalExpressionCache,
|
||||
cleanJson
|
||||
cleanJson,
|
||||
appendAwaitToTestFunc
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user