YR
Size: a a a
YR
S
YR
YR
YR
S
S
AssertionError: expected {} to deeply equal ''
S
YR
NV
const jsonBody = pm.response.json();
pm.test('Data should be empty', () => {
pm.expect(jsonBody).to.be.an('object').that.is.empty;
});
S
S
pm.expect(resp).to.eql({})
H
NV
H
S
const jsonBody = pm.response.json();
const property1 = 'A';
const property2 = 'Б';
tests['А or Б'] = jsonBody[property1] === 1 || jsonBody[property2] === 2;
tests['???'] = jsonBody[property] === 1 || jsonBody[property] === 0 || jsonBody[property]==='' ;
NV
const jsonBody = pm.response.json()
pm.test('test', () => pm.expect(jsonBody.isPresent).to.be.oneOf([0,1,'']));
NV