wip: test fn fix

This commit is contained in:
lohxt1
2024-08-16 22:31:45 +05:30
parent e81029f28b
commit 666512cf09

View File

@@ -34,7 +34,7 @@ const addBruShimToContext = (vm, __brunoTestResults) => {
globalThis.Test = (__brunoTestResults) => async (description, callback) => {
try {
await callback();
__brunoTestResults.__bruno__addResult({ description, status: "pass" });
__brunoTestResults.addResult({ description, status: "pass" });
} catch (error) {
if (error instanceof DummyChaiAssertionError) {
const { message, actual, expected } = error;