mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-25 22:41:30 +02:00
Fix #437 (start/endWith assertions)
This commit is contained in:
parent
ff3321d643
commit
91b1814c55
@ -20,6 +20,7 @@
|
|||||||
"about-window": "^1.15.2",
|
"about-window": "^1.15.2",
|
||||||
"axios": "^1.5.1",
|
"axios": "^1.5.1",
|
||||||
"chai": "^4.3.7",
|
"chai": "^4.3.7",
|
||||||
|
"chai-string": "^1.5.0",
|
||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.5.3",
|
||||||
"decomment": "^0.9.5",
|
"decomment": "^0.9.5",
|
||||||
"dotenv": "^16.0.3",
|
"dotenv": "^16.0.3",
|
||||||
|
@ -6,6 +6,7 @@ const BrunoRequest = require('../bruno-request');
|
|||||||
const { evaluateJsTemplateLiteral, evaluateJsExpression, createResponseParser } = require('../utils');
|
const { evaluateJsTemplateLiteral, evaluateJsExpression, createResponseParser } = require('../utils');
|
||||||
|
|
||||||
const { expect } = chai;
|
const { expect } = chai;
|
||||||
|
chai.use(require('chai-string'));
|
||||||
chai.use(function (chai, utils) {
|
chai.use(function (chai, utils) {
|
||||||
// Custom assertion for checking if a variable is JSON
|
// Custom assertion for checking if a variable is JSON
|
||||||
chai.Assertion.addProperty('json', function () {
|
chai.Assertion.addProperty('json', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user