I started writing some automation tests(API)
Now I tried to do to this endpoint:
https://dog.ceo/api/breeds/image/random
so I added into my function
expect(response.body.message).to.startsWith('https://images.dog.ceo/breeds/');
and at the beginning of the test:
var chakram = require('chakram');
var chai = require('chai');
chai.use(require('chai-string'))
expect = chai.expect; // Using Expect style
expect = chakram.expect;
Earlier I did not have any problems but with this "expect starts..." after running test I got: TypeError: expect(...).to.startsWith is not a function - chai and chakram
Can anyone help me?
thanks