aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-03-14 06:26:07 +1100
committerGitHub <noreply@github.com>2024-03-13 20:26:07 +0100
commitdbd6090a3a232d2211b898df8e026eac68e5abdb (patch)
treec8e13b9109e79e97aecf9a6109667148db0c9a20 /src/test
parentb3b9f855f665158b8646095c011f1ae85e05c09a (diff)
downloadskyhanni-dbd6090a3a232d2211b898df8e026eac68e5abdb.tar.gz
skyhanni-dbd6090a3a232d2211b898df8e026eac68e5abdb.tar.bz2
skyhanni-dbd6090a3a232d2211b898df8e026eac68e5abdb.zip
Backend + Fix: Improve visitor getting (#1121)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/at/hannibal2/skyhanni/test/garden/VisitorListenerTest.kt16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorListenerTest.kt b/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorListenerTest.kt
index c95e4ec03..8649ef199 100644
--- a/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorListenerTest.kt
+++ b/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorListenerTest.kt
@@ -34,11 +34,11 @@ class VisitorListenerTest {
listener.onTabListUpdate(
TabListUpdateEvent(
mutableListOf(
- "§b§lVisitors:",
- "§cSpaceman",
- "§cGrandma Wolf",
+ "§b§lVisitors: §r§f(3)",
+ " §r§cSpaceman",
+ " §r§6Madame Eleanor Q. Goldsworth III §r§fCarrot §r§c333 C §r§3107k FXP §r§275 GXP",
+ " §r§fJacob",
"ThePlayerName",
- "Jacob",
"",
)
)
@@ -46,7 +46,7 @@ class VisitorListenerTest {
verify { VisitorAPI.addVisitor("§fJacob") }
verify { VisitorAPI.addVisitor("§cSpaceman") }
- verify { VisitorAPI.addVisitor("§cGrandma Wolf") }
+ verify { VisitorAPI.addVisitor("§6Madame Eleanor Q. Goldsworth III") }
}
@Test
@@ -57,7 +57,7 @@ class VisitorListenerTest {
listener.onTabListUpdate(
TabListUpdateEvent(
- mutableListOf("§b§lVisitors:", "")
+ mutableListOf("§b§lVisitors: §r§f(0)", "")
)
)
@@ -74,10 +74,10 @@ class VisitorListenerTest {
listener.onTabListUpdate(
TabListUpdateEvent(
- mutableListOf("§b§lVisitors:", "")
+ mutableListOf("§b§lVisitors: §r§f(0)", "")
)
)
verify(exactly = 0) { VisitorAPI.removeVisitor("§fJacob") }
}
-} \ No newline at end of file
+}