tauri-kargo-tools 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/test.ts +8 -1
package/package.json
CHANGED
package/src/test.ts
CHANGED
|
@@ -362,7 +362,14 @@ export async function assertEqualsSnapshot(actual: unknown, name: string, msg?:
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
if (response.ok) {
|
|
365
|
-
|
|
365
|
+
let valueSrc = await response.text()
|
|
366
|
+
let value = undefined
|
|
367
|
+
try {
|
|
368
|
+
value = JSON.parse(valueSrc)
|
|
369
|
+
} catch (error) {
|
|
370
|
+
|
|
371
|
+
}
|
|
372
|
+
|
|
366
373
|
if (deepEqual(actual, value)) {
|
|
367
374
|
const a: Assert = { type: "assert", message: msg ?? "", value: true }
|
|
368
375
|
if (self) {
|