Skip to content

Commit

Permalink
add test for empty resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi committed Feb 21, 2021
1 parent b6f029e commit 87f3192
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/container/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func TestContainer_Singleton(t *testing.T) {
})
assert.NoError(t, err)

err = instance.Singleton(func() {})
assert.NoError(t, err)

err = instance.Make(func(s1 Shape) {
s1.SetArea(666)
})
Expand Down

0 comments on commit 87f3192

Please sign in to comment.