mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Fixed json index unit test
This commit is contained in:
parent
bb7d79e6d2
commit
c8146e759f
@ -17,14 +17,14 @@ func TestJsonDashIndex(t *testing.T) {
|
||||
})
|
||||
|
||||
Convey("Should be able to search index", func() {
|
||||
res, err := index.Search(&Query{Title: "", Tag: ""})
|
||||
res, err := index.Search(&Query{Title: "", Tag: "", Limit: 20})
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
So(len(res), ShouldEqual, 3)
|
||||
})
|
||||
|
||||
Convey("Should be able to search index by title", func() {
|
||||
res, err := index.Search(&Query{Title: "home", Tag: ""})
|
||||
res, err := index.Search(&Query{Title: "home", Tag: "", Limit: 20})
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
So(len(res), ShouldEqual, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user