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
Show file tree
Hide file tree
Changes from 3 commits
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
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
"unicorn/filename-case": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-null": "off",
"unicorn/prefer-at": "off",
bmish marked this conversation as resolved.
Show resolved Hide resolved
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off", // TODO: enable once we raise Node requirement to v16.0.0, v14.18.0.
"unicorn/prevent-abbreviations": "off"
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ exports.createAssertionCheck = function (assertions, errorMessageConfig) {
function getCurrentAssertContextVariable() {
assert(testStack.length, "Test stack should not be empty");

return testStack[testStack.length - 1].assertVar;
return testStack.at(-1).assertVar;
bmish marked this conversation as resolved.
Show resolved Hide resolved
}

function isMethodCalledOnLocalAssertObject(calleeNode) {
Expand Down
Loading