flecks/packages/web/test/abort-request.js
2024-02-16 21:02:10 -06:00

18 lines
318 B
JavaScript

import {expect} from 'chai';
import {withWeb} from '@flecks/headless/test/helpers/with-web';
it('allows request aborting', withWeb(
async ({
response,
}) => {
expect(response)
.to.not.be.null;
expect(response.ok())
.to.be.false;
},
{
template: 'templates/abort-request',
},
));