From 9cdfbe7c642d4b3533b5b579af3a864b4bef8aa2 Mon Sep 17 00:00:00 2001 From: Jason Ernst Date: Sat, 26 Oct 2024 11:34:01 -0700 Subject: [PATCH] update tests --- admin/admin_test.go | 2 +- blog/blog_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/admin_test.go b/admin/admin_test.go index 68faa06..000e37e 100644 --- a/admin/admin_test.go +++ b/admin/admin_test.go @@ -45,7 +45,7 @@ func TestCreatePost(t *testing.T) { db.AutoMigrate(&auth.BlogUser{}) db.AutoMigrate(&blog.Post{}) a := &Auth{} - sch := scholar.New() + sch := scholar.New("profiles.json", "articles.json") b := blog.New(db, a, "test", sch) ad := admin.New(db, a, b, "test") diff --git a/blog/blog_test.go b/blog/blog_test.go index bb56c2e..fabe32b 100644 --- a/blog/blog_test.go +++ b/blog/blog_test.go @@ -43,7 +43,7 @@ func TestBlogWorkflow(t *testing.T) { db.AutoMigrate(&blog.Post{}) db.AutoMigrate(&blog.Tag{}) a := &Auth{} - sch := scholar.New() + sch := scholar.New("profiles.json", "articles.json") b := blog.New(db, a, "test", sch) admin := admin.New(db, a, b, "test")