Fixed json index unit test

This commit is contained in:
Torkel Ödegaard 2015-05-13 10:57:18 +02:00
parent bb7d79e6d2
commit c8146e759f

View File

@ -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)