Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Oct 24, 2024
1 parent 74b8451 commit b68567a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/test/reducers/group.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import groupOfStopPlaceQuery from "./json/groupOfStopPlace.json";
import groupOfStopPlaceMutation from "./json/groupOfStopPlaceMutation.json";
import mapHelper from "../../modelUtils/mapToQueryVariables";

window.config = require("../../config/global.json");
window.config = {
defaultLanguageCode: "nor",
};

describe("Model: map Group of Stop Place from server to expected client model", () => {
test("should map GraphQL query result to client model for Group of StopPlace", () => {
Expand Down
4 changes: 3 additions & 1 deletion src/test/reducers/stop.model.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import clientStop from "./json/clientStop.json";
import QueryVariablesMapper from "../../modelUtils/mapToQueryVariables";
import { hasExpired } from "../../modelUtils/validBetween";

window.config = require("../../config/global.json");
window.config = {
defaultLanguageCode: "nor",
};

describe("Model: map format from server to expected client model", () => {
test("should map GraphQL response to client model for StopPlace", () => {
Expand Down

0 comments on commit b68567a

Please sign in to comment.