mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
test: fix tests by ignoring func references
This commit is contained in:
@@ -195,6 +195,11 @@ func TestNew(t *testing.T) {
|
||||
|
||||
got := New(tc.opts...)
|
||||
|
||||
// NOTE(@andreynering): Funcs have different references, so we need
|
||||
// to clear them out to compare the structs.
|
||||
tc.want.viewport.LeftGutterFunc = nil
|
||||
got.viewport.LeftGutterFunc = nil
|
||||
|
||||
if !reflect.DeepEqual(tc.want, got) {
|
||||
t.Errorf("\n\nwant %v\n\ngot %v", tc.want, got)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user