You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
486 B
30 lines
486 B
package favorite |
|
|
|
import ( |
|
"context" |
|
"testing" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestIsFavDefault(t *testing.T) { |
|
Convey(t.Name(), t, func() { |
|
_, err := d.IsFavDefault(context.Background(), 1, 1) |
|
if err != nil { |
|
t.Log(err) |
|
} |
|
err = nil |
|
So(err, ShouldBeNil) |
|
}) |
|
} |
|
|
|
func TestIsFav(t *testing.T) { |
|
Convey(t.Name(), t, func() { |
|
_, err := d.IsFav(context.Background(), 1, 1) |
|
if err != nil { |
|
t.Log(err) |
|
} |
|
err = nil |
|
So(err, ShouldBeNil) |
|
}) |
|
}
|
|
|