chai-v8-optimisation
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "chai-v8-optimisation", | ||
"description": "A V8 optimisation assertion plugin for chai.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "chai", |
@@ -50,4 +50,7 @@ <!-- TITLE --> | ||
function fn() {} | ||
expect(fn).optimisation("yes"); | ||
expect(fn).optimisation("yes"); | ||
expect(fn).optimization("yes"); // american spelling | ||
expect(fn).to.be.optimised; | ||
expect(fn).to.be.optimized; // american spelling | ||
``` | ||
@@ -59,3 +62,5 @@ ```js | ||
expect(fn).optimisation("no"); | ||
expect(fn).optimization("no"); // american spelling | ||
expect(fn).not.to.be.optimised; | ||
expect(fn).not.to.be.optimized; // american spelling | ||
``` | ||
@@ -66,5 +71,5 @@ | ||
```js | ||
expect(fn).optimisation("always"); // always-optimized | ||
expect(fn).optimisation("never"); // never-optimized | ||
expect(fn).optimisation("maybe"); // maybe-deoptimized | ||
expect(fn).optimisation("always"); // always-optimised | ||
expect(fn).optimisation("never"); // never-optimised | ||
expect(fn).optimisation("maybe"); // maybe-deoptimised | ||
``` | ||
@@ -71,0 +76,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
6645
3
64
122
0