bruno icon indicating copy to clipboard operation
bruno copied to clipboard

The "startWith" and "endWith" assertions do not work

Open xaviermarchegay opened this issue 3 years ago • 1 comments

image

assert { res.status: 200 res.body.data.url: startsWith "https://gateway.test.com" }

https://github.com/usebruno/bruno/blob/6db36513c50a7af2d4c58b35d017db81ff0ca43b/packages/bruno-js/src/runtime/assert-runtime.js#L265

I don't see those assertions in the chai library but in the chai-string library: https://www.chaijs.com/plugins/chai-string/

Also, apparently the syntax should be : expect('abcdef').to.startsWith('abc');

xaviermarchegay avatar Oct 06 '23 16:10 xaviermarchegay

This is now available in v0.23.0

helloanoop avatar Oct 10 '23 23:10 helloanoop