-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright 2023, 2024 Dima Krasner | ||
Copyright 2023 - 2025 Dima Krasner | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
@@ -264,7 +264,7 @@ func TestReply_SelfReply(t *testing.T) { | |
assert.NoError((inbox.FeedUpdater{Domain: domain, Config: server.cfg, DB: server.db}).Run(context.Background())) | ||
|
||
users := server.Handle("/users", server.Bob) | ||
assert.NotContains(users, "Welcome me") | ||
assert.Contains(users, "Welcome me") | ||
|
||
local := server.Handle("/local", nil) | ||
assert.NotContains(local, "Hello world") | ||
|
@@ -359,7 +359,7 @@ func TestReply_DM(t *testing.T) { | |
assert.NotContains(users, "Hello Bob") | ||
|
||
users = server.Handle("/users", server.Bob) | ||
assert.NotContains(users, "Hello @[email protected]:8443") | ||
assert.Contains(users, "Hello @[email protected]:8443") | ||
assert.NotContains(users, "Hello Bob") | ||
|
||
id := dm[15 : len(dm)-2] | ||
|
@@ -374,11 +374,11 @@ func TestReply_DM(t *testing.T) { | |
|
||
users = server.Handle("/users", server.Alice) | ||
assert.Contains(users, "Hello @[email protected]:8443") | ||
assert.NotContains(users, "Hello Bob") | ||
assert.Contains(users, "Hello Bob") | ||
|
||
users = server.Handle("/users", server.Bob) | ||
assert.NotContains(users, "Hello @[email protected]:8443") | ||
assert.Contains(users, "Hello Bob") | ||
assert.Contains(users, "Hello @[email protected]:8443") | ||
assert.NotContains(users, "Hello Bob") | ||
} | ||
|
||
func TestReply_DMUnfollowed(t *testing.T) { | ||
|
@@ -400,7 +400,7 @@ func TestReply_DMUnfollowed(t *testing.T) { | |
assert.NotContains(users, "Hello Bob") | ||
|
||
users = server.Handle("/users", server.Bob) | ||
assert.NotContains(users, "Hello @[email protected]:8443") | ||
assert.Contains(users, "Hello @[email protected]:8443") | ||
assert.NotContains(users, "Hello Bob") | ||
|
||
id := dm[15 : len(dm)-2] | ||
|
@@ -418,10 +418,10 @@ func TestReply_DMUnfollowed(t *testing.T) { | |
|
||
users = server.Handle("/users", server.Alice) | ||
assert.Contains(users, "Hello @[email protected]:8443") | ||
assert.NotContains(users, "Hello Bob") | ||
assert.Contains(users, "Hello Bob") | ||
|
||
users = server.Handle("/users", server.Bob) | ||
assert.NotContains(users, "Hello @[email protected]:8443") | ||
assert.Contains(users, "Hello @[email protected]:8443") | ||
assert.Contains(users, "Hello Bob") | ||
} | ||
|
||
|