@vitest/expect
Advanced tools
Comparing version 0.28.4 to 0.28.5
@@ -868,3 +868,3 @@ import { getColors, stringify, isObject, assertTypes } from '@vitest/utils'; | ||
if (Array.isArray(args[0])) | ||
args[0] = args[0].map((key) => key.replace(/([.[\]])/g, "\\$1")).join("."); | ||
args[0] = args[0].map((key) => String(key).replace(/([.[\]])/g, "\\$1")).join("."); | ||
const actual = this._obj; | ||
@@ -1123,3 +1123,3 @@ const [propertyName, expected] = args; | ||
const spyName = spy.getMockName(); | ||
const calledAndNotThrew = spy.mock.calls.length > 0 && !spy.mock.results.some(({ type }) => type === "throw"); | ||
const calledAndNotThrew = spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== "throw"); | ||
this.assert( | ||
@@ -1126,0 +1126,0 @@ calledAndNotThrew, |
{ | ||
"name": "@vitest/expect", | ||
"type": "module", | ||
"version": "0.28.4", | ||
"version": "0.28.5", | ||
"description": "Jest's expect matchers as a Chai plugin", | ||
@@ -28,4 +28,4 @@ "license": "MIT", | ||
"chai": "^4.3.7", | ||
"@vitest/spy": "0.28.4", | ||
"@vitest/utils": "0.28.4" | ||
"@vitest/utils": "0.28.5", | ||
"@vitest/spy": "0.28.5" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
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
53438
+ Added@vitest/spy@0.28.5(transitive)
+ Added@vitest/utils@0.28.5(transitive)
- Removed@vitest/spy@0.28.4(transitive)
- Removed@vitest/utils@0.28.4(transitive)
Updated@vitest/spy@0.28.5
Updated@vitest/utils@0.28.5