Plugin for hein that adds assertions for supertest.
import { use } from 'hein';
import { supertestPlugin } from 'hein-plugin-supertest';
use(supertestPlugin);
expect(response).to.have.status(200);
Check that the response content type is json
expect(response).to.be.json();
Check that the response content type is xml
expect(response).to.be.xml();