We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following code
import { use, expect } from "chai"; use(function (c) { console.warn(c.process.title) // echoes /usr/local/bin/node });
So basically in this case I can't access chai.Assertion because global object goes as the first arguments to use.
chai.Assertion
This is most likely because use is defined as:
use
function (fn) { if (!~used.indexOf(fn)) { fn(this, util); // !!! this == global here used.push(fn); } return this; }
The text was updated successfully, but these errors were encountered:
@mir3z This is fixed per #724. It's available in the upcoming v4 release. A prerelease version is available through npm: chai@4.0.0-canary.1
chai@4.0.0-canary.1
Sorry, something went wrong.
No branches or pull requests
Consider the following code
So basically in this case I can't access
chai.Assertion
because global object goes as the first arguments to use.This is most likely because
use
is defined as:The text was updated successfully, but these errors were encountered: