Skip to content

Commit

Permalink
fix: kdb test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
SIY1121 committed Jan 23, 2021
1 parent c103fc5 commit 9d1e7ef
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions __tests__/usecase/fetchCourseFromKdb.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { NoCoursesFoundError } from 'twinte-parser/dist/kdbDownloader'
import { fetchCoursesFromKdbUseCase } from '../../src/usecase/fetchCoursesFromKdb'

test('存在しない年次を指定したときにエラーになる', async () => {
await expect(fetchCoursesFromKdbUseCase(9999)).rejects.toBeInstanceOf(
NoCoursesFoundError
)
})
test(
'存在しない年次を指定したときにエラーになる',
async () => {
await expect(fetchCoursesFromKdbUseCase(9999)).rejects.toBeInstanceOf(
NoCoursesFoundError
)
},
1000 * 60 * 10
)

test(
'存在する年次を指定したときに何かしらのデータが帰ってくる',
Expand Down

0 comments on commit 9d1e7ef

Please sign in to comment.