forked from extern/bruno
Add scripts in comments
This commit is contained in:
parent
5ba3903c31
commit
73062472b7
@ -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]} */`;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user