Skip to content

Commit

Permalink
Fix failing test for searching by tag
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
msp301 committed May 2, 2024
1 parent 10bb5fa commit 82cd931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/notebook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestSearchByTag(t *testing.T) {
book := &Notebook{Notes: g}

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

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

0 comments on commit 82cd931

Please sign in to comment.