Skip to content

Commit 82cd931

Browse files
committed
Fix failing test for searching by tag
This test has been proving that if a tag matches a note that it will gather the note linked to the tag vertex, but we have also introduced gathering the context line number, which the test isn't stubbing a test scenario that will match context. Ignore for now.
1 parent 10bb5fa commit 82cd931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/notebook_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func TestSearchByTag(t *testing.T) {
1818
book := &Notebook{Notes: g}
1919

2020
got := book.SearchByTags("#foo")
21-
want := []Result{{Value: graph.Vertex{Id: 2, Label: "note"}}}
21+
want := []Result{{Line: -1, Value: graph.Vertex{Id: 2, Label: "note"}}}
2222

2323
if !reflect.DeepEqual(got, want) {
2424
t.Fatalf("Expected: %+v\nGot: %+v", want, got)

0 commit comments

Comments
 (0)