Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies in preparation for major release #377

Merged
merged 5 commits into from
Jun 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/utils.js
bmish authored Jun 27, 2023
commit 06bd54882a7ed7b357591b4b2cba6d3da9dba97b
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
@@ -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) {