Skip to content

Commit

Permalink
Update test Material
Browse files Browse the repository at this point in the history
  • Loading branch information
GoneTone committed Jun 5, 2022
1 parent fa47ed2 commit 73858c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions __tests__/entryPageList/Material.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ describe('Material', () => {
expect(result.length > 0).toBe(true)
})

test('Get material entry page data list "[0].name", apply "Food, Talent Level-Up Material" filters, return "Philosophies of Diligence"', async () => {
test('Get material entry page data list "[0].name", apply "Potion" filters, return "Shocking Essential Oil"', async () => {
const material = new Material()
const result = await material.getList(MaterialFilters.Type.Food, MaterialFilters.Type.TalentLevelUpMaterial)
const result = await material.getList(MaterialFilters.Type.Potion)

expect(result[0]?.name).toBe('Philosophies of Diligence')
expect(result[0]?.name).toBe('Shocking Essential Oil')
})

test('Get material entry page data list "[0].entry_page_id", apply "Food, Talent Level-Up Material" filters, return "74"', async () => {
test('Get material entry page data list "[0].entry_page_id", apply "Potion" filters, return "732"', async () => {
const material = new Material()
const result = await material.getList(MaterialFilters.Type.Food, MaterialFilters.Type.TalentLevelUpMaterial)
const result = await material.getList(MaterialFilters.Type.Potion)

expect(result[0]?.entry_page_id).toBe('74')
expect(result[0]?.entry_page_id).toBe('732')
})
})

Expand Down

0 comments on commit 73858c0

Please sign in to comment.