mercredi 10 avril 2019

supertest Failure test 400

how do I do a failure test for a GET end point that takes no parameters. here is the pass test.

describe("GET /lookups", () => {
  it("should return 200 OK", async done => {
    const response = await request(app).get(`${baseapi}/lookups`);
    expect(response.status).toBe(200);
    done();
  });
});

Aucun commentaire:

Enregistrer un commentaire