Skip to content

Commit

Permalink
fix: linter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jan 1, 2024
1 parent d469190 commit 545d5ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions countries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCountries(t *testing.T) {

// Make sure all countries are there
assert.NotNil(t, countries)
assert.Equal(t, 249, len(countries))
assert.Len(t, countries, 249)

// Spot check a country
usa := GetByAlpha2(testCountryAlpha2)
Expand Down Expand Up @@ -280,7 +280,7 @@ func TestGetAll(t *testing.T) {
t.Run("valid countries", func(t *testing.T) {
c := GetAll()
assert.NotNil(t, c)
assert.Equal(t, 249, len(c))
assert.Len(t, c, 249)
})
}

Expand Down

0 comments on commit 545d5ab

Please sign in to comment.