From 5c154389493de0325cfe852269c5dd6923ef06b4 Mon Sep 17 00:00:00 2001 From: David Coomber <10194965-dcoomber@users.noreply.gitlab.com> Date: Wed, 22 Mar 2023 20:56:35 +0200 Subject: [PATCH] Updated plugin to be addProperty Re #132 --- packages/bruno-js/src/runtime/assert-runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-js/src/runtime/assert-runtime.js b/packages/bruno-js/src/runtime/assert-runtime.js index 5985000a1..04b49df3a 100644 --- a/packages/bruno-js/src/runtime/assert-runtime.js +++ b/packages/bruno-js/src/runtime/assert-runtime.js @@ -8,7 +8,7 @@ const { evaluateJsTemplateLiteral, evaluateJsExpression, createResponseParser } const { expect } = chai; chai.use(function (chai, utils) { // Custom assertion for checking if a variable is JSON - chai.Assertion.addMethod('json', function () { + chai.Assertion.addProperty('json', function () { const obj = this._obj; const isJson = typeof obj === 'object' && obj !== null && !Array.isArray(obj) && obj.constructor === Object;