Skip to content

Commit

Permalink
data must toBeGreaterThan 0
Browse files Browse the repository at this point in the history
  • Loading branch information
blckclov3r committed Sep 15, 2024
1 parent d2a5463 commit 0dfe2cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test.describe('index.ts', () => {
if (postCodes) {
if ('data' in postCodes) {
const data = postCodes.data;
expect(data).toHaveLength(1990)
expect(data.length).toBeGreaterThan(0);
}
}
});
Expand All @@ -33,7 +33,7 @@ test.describe('index.ts', () => {
if (municipalities) {
if ('data' in municipalities) {
const data = municipalities.data;
expect(data).toHaveLength(1877);
expect(data.length).toBeGreaterThan(0);
}
}
if (municipalitySearch) {
Expand All @@ -60,7 +60,7 @@ test.describe('index.ts', () => {
if (regionSearch) {
if ('data' in regionSearch) {
const data = regionSearch.data;
expect(data).toHaveLength(128)
expect(data.length).toBeGreaterThan(0);
}
}
if (regionWithLimit) {
Expand All @@ -76,7 +76,7 @@ test.describe('index.ts', () => {
if (locationSearch) {
if ('data' in locationSearch) {
const data = locationSearch.data;
expect(data).toHaveLength(54)
expect(data.length).toBeGreaterThan(0);
}
}
if (locationWithLimit) {
Expand Down

0 comments on commit 0dfe2cb

Please sign in to comment.