Skip to content

Commit

Permalink
drop weird indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Jun 1, 2017
1 parent 901fbf2 commit 9997fe4
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions dig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,9 @@ func TestCanProvideErrorLikeType(t *testing.T) {
c := New()
require.NoError(t, c.Provide(tt), "provide must not fail")

require.NoError(t, c.Invoke(
func(err *someError) {
assert.NotNil(t, err, "invoke received nil")
}), "invoke must not fail")
require.NoError(t, c.Invoke(func(err *someError) {
assert.NotNil(t, err, "invoke received nil")
}), "invoke must not fail")
})
}
}
Expand All @@ -510,10 +509,9 @@ func TestCantProvideParameterObjects(t *testing.T) {

c := New()
require.NoError(t, c.Provide(args), "provide failed")
require.NoError(t, c.Invoke(
func(a *Args) {
require.True(t, args == a, "args must match")
}), "invoke failed")
require.NoError(t, c.Invoke(func(a *Args) {
require.True(t, args == a, "args must match")
}), "invoke failed")
})

t.Run("constructor", func(t *testing.T) {
Expand All @@ -536,10 +534,9 @@ func TestCantProvideParameterObjects(t *testing.T) {
require.NoError(t, c.Provide(func() (*Args, error) {
return args, nil
}), "provide failed")
require.NoError(t, c.Invoke(
func(a *Args) {
require.True(t, args == a, "args must match")
}), "invoke failed")
require.NoError(t, c.Invoke(func(a *Args) {
require.True(t, args == a, "args must match")
}), "invoke failed")
})
}

Expand Down

0 comments on commit 9997fe4

Please sign in to comment.