chore: change Mock to Logger to me error source more clear

This commit is contained in:
argoyle committed 2021-01-18 13:06:00 +01:00
1 parent 6e69a40ac1
commit 8bf207511a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ func (m *Mock) Check(t testing.TB, wantLogged []string) {
got := litter.Sdump(m.Logged)
want := litter.Sdump(wantLogged)
if got != want {
t.Errorf("Mock() got %s, want %s", got, want)
t.Errorf("Logger() got %s, want %s", got, want)
}
}
}
+1 -1
View File
@@ -51,7 +51,7 @@ func TestMock_Check(t *testing.T) {
name: "different",
fields: fields{Logged: []string{"same"}},
args: args{wantLogged: []string{"different"}},
want: []string{`Mock() got []string{
want: []string{`Logger() got []string{
"same",
}, want []string{
"different",