forked from extern/bruno
Merge pull request #133 from bharathbdev/bugfix/assertion-result-issue
Bugfix/assertion result issue
This commit is contained in:
commit
04c3c2dbf1
@ -169,16 +169,14 @@ const registerNetworkIpc = (mainWindow, watcher, lastOpenedCollections) => {
|
|||||||
|
|
||||||
// run assertions
|
// run assertions
|
||||||
const assertions = get(request, 'assertions');
|
const assertions = get(request, 'assertions');
|
||||||
if(assertions && assertions.length) {
|
const assertRuntime = new AssertRuntime();
|
||||||
const assertRuntime = new AssertRuntime();
|
const results = assertRuntime.runAssertions(assertions, request, response, envVars, collectionVariables, collectionPath);
|
||||||
const results = assertRuntime.runAssertions(assertions, request, response, envVars, collectionVariables, collectionPath);
|
|
||||||
|
|
||||||
mainWindow.webContents.send('main:assertion-results', {
|
mainWindow.webContents.send('main:assertion-results', {
|
||||||
results: results,
|
results: results,
|
||||||
itemUid: item.uid,
|
itemUid: item.uid,
|
||||||
collectionUid
|
collectionUid
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// run tests
|
// run tests
|
||||||
const testFile = get(item, 'request.tests');
|
const testFile = get(item, 'request.tests');
|
||||||
|
Loading…
Reference in New Issue
Block a user