Skip to content

Commit

Permalink
Corrected errors with format in previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
SimaoNery committed Feb 7, 2024
1 parent 0791ec6 commit 4df4d70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/offerService.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import config from "../config";

import {hideOffer, disableOffer, enableOffer, editOffer} from "./offerService";
import { hideOffer, disableOffer, enableOffer, editOffer } from "./offerService";
import Constants from "../utils/Constants";
const { API_HOSTNAME } = config;

Expand Down Expand Up @@ -59,10 +59,10 @@ describe("Offer Service", () => {

it("Should send a POST request to edit a specific offer", async () => {

//Simulate request success
fetch.mockResponse(JSON.stringify({mockData: true }));
// Simulate request success
fetch.mockResponse(JSON.stringify({ mockData: true }));

await editOffer({offerId:id}, data);
await editOffer({ offerId: id }, data);

expect(fetch).toHaveBeenCalledWith(`${API_HOSTNAME}/offers/${id}/edit`, {
method: "POST",
Expand Down

0 comments on commit 4df4d70

Please sign in to comment.