Skip to content

Commit c29ba6b

Browse files
authored
Merge pull request #115 from nicolelim02/feat/communication
Fix tests
2 parents 32f27c1 + 01fc14b commit c29ba6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/QuestionImageContainer/QuestionImageContainer.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jest.mock("../../utils/api", () => ({
1010

1111
describe("Question Image Container", () => {
1212
const mockLocalStorage = (() => {
13-
const store: { [key: string]: string } = { token: "test" };
13+
const store: { [key: string]: string } = { accessToken: "test" };
1414

1515
return {
1616
getItem(key: string) {
@@ -122,7 +122,7 @@ describe("Question Image Container", () => {
122122
expect.any(FormData),
123123
expect.objectContaining({
124124
headers: {
125-
Authorization: `Bearer ${mockLocalStorage.getItem("token")}`,
125+
Authorization: `Bearer ${mockLocalStorage.getItem("accessToken")}`,
126126
"Content-Type": "multipart/form-data",
127127
},
128128
})

0 commit comments

Comments
 (0)