fix: fixed issue in bru cli where assertions was not being run

This commit is contained in:
Anoop M D
2023-03-23 21:35:41 +05:30
parent fbc6e7bff5
commit dea95664b9
3 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ const runSingleRequest = async function (filename, bruJson, collectionPath, coll
// run assertions
let assertionResults = [];
const assertions = get(bruJson, 'request.assert');
const assertions = get(bruJson, 'request.assertions');
if(assertions && assertions.length) {
const assertRuntime = new AssertRuntime();
assertionResults = assertRuntime.runAssertions(assertions, request, response, envVariables, collectionVariables, collectionPath);