Skip to content

Commit

Permalink
Update lib/utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Jun 27, 2023
1 parent 2565aac commit 06bd548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -276,7 +276,7 @@ exports.createAssertionCheck = function (assertions, errorMessageConfig) {
function getCurrentAssertContextVariable() {
assert(testStack.length, "Test stack should not be empty");

return testStack.at(-1).assertVar;
return testStack[testStack.length - 1].assertVar;
}

function isMethodCalledOnLocalAssertObject(calleeNode) {
Expand Down

0 comments on commit 06bd548

Please sign in to comment.