Fix #437 (start/endWith assertions)

This commit is contained in:
Oleksii Slabchenko 2023-10-10 01:31:05 +02:00
parent ff3321d643
commit 91b1814c55
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
"about-window": "^1.15.2",
"axios": "^1.5.1",
"chai": "^4.3.7",
"chai-string": "^1.5.0",
"chokidar": "^3.5.3",
"decomment": "^0.9.5",
"dotenv": "^16.0.3",

View File

@ -6,6 +6,7 @@ const BrunoRequest = require('../bruno-request');
const { evaluateJsTemplateLiteral, evaluateJsExpression, createResponseParser } = require('../utils');
const { expect } = chai;
chai.use(require('chai-string'));
chai.use(function (chai, utils) {
// Custom assertion for checking if a variable is JSON
chai.Assertion.addProperty('json', function () {