diff --git a/packages/bruno-electron/src/ipc/network/index.js b/packages/bruno-electron/src/ipc/network/index.js index 2b29c2d832..de3d2d3b0d 100644 --- a/packages/bruno-electron/src/ipc/network/index.js +++ b/packages/bruno-electron/src/ipc/network/index.js @@ -169,16 +169,14 @@ const registerNetworkIpc = (mainWindow, watcher, lastOpenedCollections) => { // run assertions const assertions = get(request, 'assertions'); - if(assertions && assertions.length) { - const assertRuntime = new AssertRuntime(); - const results = assertRuntime.runAssertions(assertions, request, response, envVars, collectionVariables, collectionPath); + const assertRuntime = new AssertRuntime(); + const results = assertRuntime.runAssertions(assertions, request, response, envVars, collectionVariables, collectionPath); - mainWindow.webContents.send('main:assertion-results', { - results: results, - itemUid: item.uid, - collectionUid - }); - } + mainWindow.webContents.send('main:assertion-results', { + results: results, + itemUid: item.uid, + collectionUid + }); // run tests const testFile = get(item, 'request.tests');