-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from boostcampwm-2022/feat/test
ํ ์คํธ ์ฝ๋ ๋ฆฌํฉํ ๋ง + ์ ์ ํ ์คํธ ์ฝ๋ ์ถ๊ฐ
- Loading branch information
Showing
8 changed files
with
232 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const expectedCourseData = { | ||
id: 1, | ||
title: "test example", | ||
path: [ | ||
{ lat: 1, lng: 2 }, | ||
{ lat: 2, lng: 3 }, | ||
], | ||
pathLength: 300, | ||
userId: "June1010", | ||
hDong: { | ||
name: "์์ธํน๋ณ์", | ||
}, | ||
}; | ||
|
||
export const expectedRecruitData = { | ||
id: 1, | ||
title: "test example", | ||
startTime: "2037-12-29T15:00:00.000Z", | ||
maxPpl: 1, | ||
currentPpl: 1, | ||
userId: "June1010", | ||
pace: 300, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export const mockCourse = (title: string) => { | ||
return { | ||
title: title, | ||
path: [ | ||
{ lat: 1, lng: 2 }, | ||
{ lat: 2, lng: 3 }, | ||
], | ||
pathLength: 300, | ||
hCode: "1100000000", | ||
}; | ||
}; | ||
|
||
export const mockRecruit = { | ||
title: "test example", | ||
startTime: new Date(2037, 11, 30).toISOString(), | ||
maxPpl: 5, | ||
pace: 300, | ||
courseId: 1, | ||
}; | ||
|
||
export const mockUserNoEmail = (id: string) => { | ||
return { | ||
userId: id, | ||
password: "1234567890", | ||
pace: 300, | ||
hCode: "1100000000", | ||
email: "[email protected]", | ||
receiveMail: false, | ||
}; | ||
}; | ||
|
||
export const mockAxiosResponse = (statusCode: number) => { | ||
return { | ||
data: {}, | ||
headers: {}, | ||
config: {}, | ||
statusText: "OK", | ||
status: statusCode, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const requestRecruitMockData = { | ||
title: "test example", | ||
startTime: new Date(2037, 11, 30).toISOString(), | ||
maxPpl: 1, //ALERT, MAXPPL = 1 | ||
pace: 300, | ||
}; |
Empty file.
Empty file.
Empty file.