Skip to content

Commit

Permalink
update a test
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi committed Mar 22, 2022
1 parent f982dce commit a5d524b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@ func TestContainer_With_The_Global_Instance(t *testing.T) {
assert.NoError(t, err)

err = container.Transient(func() Shape {
return &Circle{a: 13}
return &Circle{a: 33}
})
assert.NoError(t, err)

err = container.Resolve(&sh)
assert.NoError(t, err)

err = container.NamedSingleton("theCircle", func() Shape {
return &Circle{a: 13}
return &Circle{a: 33}
})
assert.NoError(t, err)

err = container.NamedResolve(&sh, "theCircle")
assert.NoError(t, err)

err = container.NamedTransient("theCircle", func() Shape {
return &Circle{a: 13}
return &Circle{a: 66}
})
assert.NoError(t, err)

Expand Down

0 comments on commit a5d524b

Please sign in to comment.