-
Notifications
You must be signed in to change notification settings - Fork 5
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 #332 from boostcamp-2020/dev
12/16 배포
- Loading branch information
Showing
104 changed files
with
1,477 additions
and
507 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
40 changes: 0 additions & 40 deletions
40
client/src/__tests__/components/modals/createTransaction.tsx
This file was deleted.
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,43 @@ | ||
import transactionService, { createGetTransactionQuery } from '../../services/transaction'; | ||
import { getFirstDateOfNextMonth, getFirstDateOfPreviousMonth } from '../../utils/date'; | ||
|
||
describe('Transaction 테스트', () => { | ||
let accountbookId; | ||
let startDate; | ||
let endDate; | ||
let beforeStartDate; | ||
let afterEndDate; | ||
let g; | ||
beforeEach(() => { | ||
accountbookId = 1; | ||
startDate = new Date(); | ||
endDate = getFirstDateOfNextMonth(startDate); | ||
beforeStartDate = getFirstDateOfPreviousMonth(startDate); | ||
afterEndDate = getFirstDateOfNextMonth(endDate); | ||
g = transactionService.getTransactions(accountbookId, startDate, endDate, beforeStartDate, afterEndDate); | ||
}); | ||
test('현재 요청을 보낸후 이를 세션에 캐싱하였는가', async () => { | ||
await g.next(); | ||
await g.next(); | ||
const query = createGetTransactionQuery(accountbookId, startDate, endDate); | ||
const get = window.sessionStorage.getItem(query); | ||
expect(get).not.toBeNull(); | ||
expect(get).not.toBeUndefined(); | ||
}); | ||
test('요청을 보낸후 이전 날짜를 요청을 세션에 캐싱하였는가', async () => { | ||
await g.next(); | ||
await g.next(); | ||
const query = createGetTransactionQuery(accountbookId, beforeStartDate, startDate); | ||
const get = window.sessionStorage.getItem(query); | ||
expect(get).not.toBeNull(); | ||
expect(get).not.toBeUndefined(); | ||
}); | ||
test('요청을 보낸 후 다음 날짜를 세션에 캐싱 하였는가', async () => { | ||
await g.next(); | ||
await g.next(); | ||
const query = createGetTransactionQuery(accountbookId, endDate, afterEndDate); | ||
const get = window.sessionStorage.getItem(query); | ||
expect(get).not.toBeNull(); | ||
expect(get).not.toBeUndefined(); | ||
}); | ||
}); |
This file was deleted.
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
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
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,16 @@ | ||
import { getFirstDateOfNextMonth, getFirstDateOfPreviousMonth } from '../../utils/date'; | ||
|
||
describe('getXDateOfMonth 테스트', () => { | ||
test('현재 객체의 이전달의 첫번째 요일을 가진 Date객체가 반환 되는가', () => { | ||
const currentDate = new Date(); | ||
const beforeDate = getFirstDateOfPreviousMonth(currentDate); | ||
expect(currentDate.getMonth()).toBe((beforeDate.getMonth() + 1) % 12); | ||
expect(beforeDate.getDate()).toBe(1); | ||
}); | ||
test('현재 객체의 다음달의 첫번째 요일을 가진 Date 객체가 반환 되는가?', () => { | ||
const currentDate = new Date(); | ||
const nextDate = getFirstDateOfNextMonth(currentDate); | ||
expect(currentDate.getMonth()).toBe((nextDate.getMonth() + 11) % 12); | ||
expect(nextDate.getDate()).toBe(1); | ||
}); | ||
}); |
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
1 change: 0 additions & 1 deletion
1
client/src/components/accountbook-social-page/add-button/AddButton.tsx
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
2 changes: 1 addition & 1 deletion
2
...rc/components/accountbook-social-page/admin-setting-button/AdminSettingButton.stories.tsx
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
1 change: 0 additions & 1 deletion
1
...in-setting-button/AdmingSettingButton.tsx → ...min-setting-button/AdminSettingButton.tsx
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
Oops, something went wrong.