mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-24 13:15:40 +00:00
wip: test fn fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user