Add scripts in comments

This commit is contained in:
Sebastien Dionne 2023-10-23 07:07:25 -04:00
parent 5ba3903c31
commit 73062472b7

View File

@ -68,13 +68,13 @@ const importPostmanV2CollectionItem = (brunoParent, item) => {
if (!brunoRequestItem.request.script) {
brunoRequestItem.request.script = {};
}
brunoRequestItem.request.script.req = event.script.exec[0];
brunoRequestItem.request.script.req = `/* ${event.script.exec[0]} */`;
}
if (event.listen === 'test' && event.script && event.script.exec) {
if (!brunoRequestItem.request.tests) {
brunoRequestItem.request.tests = {};
}
brunoRequestItem.request.tests = event.script.exec[0];
brunoRequestItem.request.tests = `/* ${event.script.exec[0]} */`;
}
});
}