hein-plugin-supertest
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

hein-plugin-supertest

npm npm npm npm

Plugin for hein that adds assertions for supertest.

Installation

import { use } from 'hein';
import { supertestPlugin } from 'hein-plugin-supertest';
use(supertestPlugin);

Usage

status

expect(response).to.have.status(200);

json

Check that the response content type is json

expect(response).to.be.json();

xml

Check that the response content type is xml

expect(response).to.be.xml();

Readme

Keywords

none

Package Sidebar

Install

npm i hein-plugin-supertest

Weekly Downloads

132

Version

1.0.2

License

MIT

Unpacked Size

8.7 kB

Total Files

9

Last publish

Collaborators

  • ktammekivi