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 73858c0 commit 37518bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __tests__/entryPageList/Material.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ import { Material, MaterialFilters } from '../../src'

describe('Material', () => {
describe('Material List', () => {
test('Get material entry page data list, apply "Food, Talent Level-Up Material" filters, "length > 0" return "true"', async () => {
test('Get material entry page data list, apply "Potion" filters, "length > 0" return "true"', 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.length > 0).toBe(true)
})
Expand Down Expand Up @@ -63,9 +63,9 @@ describe('Material', () => {
expect(result > 0).toBe(true)
})

test('Get material entry page data total, apply "Food, Talent Level-Up Material" filters, "result > 0" return "true"', async () => {
test('Get material entry page data total, apply "Potion" filters, "result > 0" return "true"', async () => {
const material = new Material()
const result = await material.getTotal(MaterialFilters.Type.Food, MaterialFilters.Type.TalentLevelUpMaterial)
const result = await material.getTotal(MaterialFilters.Type.Potion)

expect(result > 0).toBe(true)
})
Expand Down

0 comments on commit 37518bf

Please sign in to comment.