Skip to content

Commit

Permalink
fix: switching back to old data (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamos486 authored May 26, 2022
1 parent be34cb2 commit e51c891
Show file tree
Hide file tree
Showing 4 changed files with 5,094 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/getResults.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {getResults} from "./getResults";
import {ReliefType, Result, ResultResponse, SupportType} from "../types";
import {standardizeFormat} from "./responseFormatter";

const data = require("../assets/data/new_results.json");
const data = require("../assets/data/results.json");

describe("getResults", () => {
it("fetches data successfully from the API", async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/api/getResults.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Result, ResultResponse} from "../types";
import {standardizeFormat} from "./responseFormatter";
import data from "../assets/data/new_results.json";
import data from "../assets/data/results.json";

export const getResults = async (): Promise<Result[]> => {
try {
Expand Down
Loading

0 comments on commit e51c891

Please sign in to comment.