Skip to content

Commit

Permalink
test: update test case for getTenDays
Browse files Browse the repository at this point in the history
  • Loading branch information
sheverniskiy committed Jun 5, 2022
1 parent d7c04c8 commit 707d358
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/gismeteo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ describe('Gismeteo', () => {
result = await gismeteo.getTenDays('Moscow')
})

test('should contain 40 items', () => {
expect(result.length).toBe(40)
test('should contain 12 or 40 items', () => {
expect(result.length).toBeGreaterThanOrEqual(12)
expect(result.length).toBeLessThanOrEqual(40)
})

test('should not contain any undefined values', () => {
Expand Down

0 comments on commit 707d358

Please sign in to comment.