Skip to content

Commit

Permalink
changed name of test just to follow syntax of other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
al6862 committed Nov 14, 2023
1 parent e0523f3 commit 5b34050
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions back-end/test/landingFeed.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const axios = require("axios");
const expect = chai.expect;
chai.use(chaiHttp);

describe("GET /retrieve", () => {
describe("Landing Feed", () => {
afterEach(() => {
sinon.restore();
});
Expand All @@ -16,7 +16,7 @@ describe("GET /retrieve", () => {
const getStub = sinon.stub(axios, "get").resolves(mock_response);

chai.request(app)
.get("/retrieve")
.get("/landingFeed/retrieve")
.end((err, res) => {
expect(res).to.have.status(200);
expect(res.body).to.be.an("array");
Expand All @@ -31,7 +31,7 @@ describe("GET /retrieve", () => {
const getStub = sinon.stub(axios, "get").rejects(err_response);

chai.request(app)
.get("/retrieve")
.get("/landingFeed/retrieve")
.end((err, res) => {
expect(res).to.have.status(500);
expect(res.body).to.deep.equal({ error: "Internal Server Error" });
Expand Down

0 comments on commit 5b34050

Please sign in to comment.