Skip to content

Commit d18f949

Browse files
committed
feat: update testcase
1 parent d5b9b73 commit d18f949

File tree

2 files changed

+1
-96
lines changed

2 files changed

+1
-96
lines changed

test/functional/datasets/GetDatasetDownloadCount.test.ts

Lines changed: 0 additions & 95 deletions
This file was deleted.

test/unit/datasets/DatasetsRepository.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ describe('DatasetsRepository', () => {
10241024
MDCStartDate: '2021-01-01'
10251025
}
10261026
test('should return citation when response is successful', async () => {
1027-
jest.spyOn(axios, 'get').mockResolvedValue(testDatasetDownloadCount)
1027+
jest.spyOn(axios, 'get').mockResolvedValue({ data: testDatasetDownloadCount })
10281028

10291029
const actual = await sut.getDatasetDownloadCount(testDatasetModel.id)
10301030

0 commit comments

Comments
 (0)