rested
Version:
{REST}ed; {REST}ful Enterprise Data-as-a-Service (DaaS)
15 lines (12 loc) • 385 B
JavaScript
const supertest = require('supertest');
const fixture = require('./fixtures/vegetable');
describe('HEAD plural', () => {
beforeAll(fixture.init);
afterAll(fixture.deinit);
beforeEach(fixture.create);
const request = () => supertest(fixture.app());
it("should get the header", () =>
request().head('/api/vegetables')
.expect(200, undefined)
);
});