chore: allow ajax test to work with different dev server ports

This commit is contained in:
Thijs Louisse 2023-11-02 15:52:50 +01:00 committed by GitHub
parent 7e72f60cc9
commit d129dd629d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -597,7 +597,7 @@ describe('Ajax', () => {
'foobar',
);
expect(error.message).to.include('http://localhost:8000/foobar');
expect(/http:\/\/localhost:\d*\/foobar/.test(error.message)).to.be.true;
expect(error.message).to.include('418');
expect(error.message).to.include("I'm a teapot");
});