mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-08 00:54:10 +01:00
fix: fixed string length comparision bug in assert runtime
This commit is contained in:
parent
837e39d870
commit
6b2d335ade
@ -1,6 +1,5 @@
|
|||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const chai = require('chai');
|
const chai = require('chai');
|
||||||
const { nanoid } = require('nanoid');
|
|
||||||
const Bru = require('../bru');
|
const Bru = require('../bru');
|
||||||
const BrunoRequest = require('../bruno-request');
|
const BrunoRequest = require('../bruno-request');
|
||||||
const { evaluateJsExpression, createResponseParser } = require('../utils');
|
const { evaluateJsExpression, createResponseParser } = require('../utils');
|
||||||
@ -40,7 +39,7 @@ const { expect } = chai;
|
|||||||
* isBoolean : is boolean
|
* isBoolean : is boolean
|
||||||
*/
|
*/
|
||||||
const parseAssertionOperator = (str = '') => {
|
const parseAssertionOperator = (str = '') => {
|
||||||
if(!str || typeof str !== 'string' || str.length) {
|
if(!str || typeof str !== 'string' || !str.length) {
|
||||||
return {
|
return {
|
||||||
operator: 'eq',
|
operator: 'eq',
|
||||||
value: str
|
value: str
|
||||||
|
Loading…
Reference in New Issue
Block a user