Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Feb 13, 2023
1 parent 43d3602 commit e61ebfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modulegen/dependabot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestExamplesHasDependabotEntry(t *testing.T) {
require.NoError(t, err)

// we have to exclude the main and compose modules from the examples updates
assert.Equal(t, len(exampleUpdates)-2, len(examples))
assert.Equal(t, len(exampleUpdates)-3, len(examples))

// all example modules exist in the dependabot updates
for _, example := range examples {
Expand Down
4 changes: 2 additions & 2 deletions modulegen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ func assertDependabotExamplesUpdates(t *testing.T, example Example, originalConf

// first item is the main module
assert.Equal(t, "/", examples[0].Directory, examples)
// second item is the compose module
assert.Equal(t, "/modules/compose", examples[1].Directory, examples)
// second item is the modulegen module
assert.Equal(t, "/modulegen", examples[1].Directory, examples)
}

// assert content example file in the docs
Expand Down

0 comments on commit e61ebfd

Please sign in to comment.