aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-10-21 19:51:22 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-10-21 19:56:48 -0700
commit70940e768c3f7d3c8772040d516f5e63a6cbdef5 (patch)
tree9aca23a7cdc3d57a500723d8510fdd8f3cf600c7
parent37f93d5127eb31fb0566f1a95b6016980cf2b99b (diff)
Fix integration tests
-rw-r--r--tests/entry_test.go2
-rw-r--r--tests/user_test.go10
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/entry_test.go b/tests/entry_test.go
index 369f546..ba22bb9 100644
--- a/tests/entry_test.go
+++ b/tests/entry_test.go
@@ -100,7 +100,7 @@ func TestSearchEntries(t *testing.T) {
t.Fatal(err)
}
- feedID, err := client.CreateFeed("https://github.com/miniflux/miniflux/releases.atom", categories[0].ID)
+ feedID, err := client.CreateFeed("https://miniflux.app/feed.xml", categories[0].ID)
if err != nil {
t.Fatal(err)
}
diff --git a/tests/user_test.go b/tests/user_test.go
index 85b6ebd..6128106 100644
--- a/tests/user_test.go
+++ b/tests/user_test.go
@@ -67,7 +67,7 @@ func TestGetUsers(t *testing.T) {
t.Fatalf(`Invalid language, got "%v"`, users[0].Language)
}
- if users[0].Theme != "default" {
+ if users[0].Theme != "light_serif" {
t.Fatalf(`Invalid theme, got "%v"`, users[0].Theme)
}
@@ -104,7 +104,7 @@ func TestCreateStandardUser(t *testing.T) {
t.Fatalf(`Invalid language, got "%v"`, user.Language)
}
- if user.Theme != "default" {
+ if user.Theme != "light_serif" {
t.Fatalf(`Invalid theme, got "%v"`, user.Theme)
}
@@ -168,7 +168,7 @@ func TestGetUserByID(t *testing.T) {
t.Fatalf(`Invalid language, got "%v"`, user.Language)
}
- if user.Theme != "default" {
+ if user.Theme != "light_serif" {
t.Fatalf(`Invalid theme, got "%v"`, user.Theme)
}
@@ -219,7 +219,7 @@ func TestGetUserByUsername(t *testing.T) {
t.Fatalf(`Invalid language, got "%v"`, user.Language)
}
- if user.Theme != "default" {
+ if user.Theme != "light_serif" {
t.Fatalf(`Invalid theme, got "%v"`, user.Theme)
}
@@ -244,7 +244,7 @@ func TestUpdateUserTheme(t *testing.T) {
t.Fatal(err)
}
- theme := "black"
+ theme := "dark_serif"
user, err = client.UpdateUser(user.ID, &miniflux.UserModification{Theme: &theme})
if err != nil {
t.Fatal(err)