File tree Expand file tree Collapse file tree
src/test/kotlin/xyz/theprogramsrc/translationsmodule Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# v0.1.5 - Snapshot
22* Now translations are automatically colorized (unless you set ` colorize ` to ` false ` )
3+ * Updated tests
34
45# v0.1.4 - Snapshot
56* Updated SimpleCoreAPI to v0.3.0-SNAPSHOT
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ internal class TranslationColorTest {
2222 defaultValue = " defaultValue" ,
2323 mainColor = " &7"
2424 )
25- assertEquals(" &7defaultValue" , translation.translate())
25+ assertEquals(" &7defaultValue" , translation.translate(colorize = false ))
2626 }
2727
2828 @Test
@@ -33,7 +33,7 @@ internal class TranslationColorTest {
3333 colors = arrayOf(" &c" ),
3434 mainColor = " &7"
3535 )
36- assertEquals(" &7defaultValue is &ccolorized&7." , translation.translate())
36+ assertEquals(" &7defaultValue is &ccolorized&7." , translation.translate(colorize = false ))
3737 }
3838
3939 @Test
@@ -44,7 +44,7 @@ internal class TranslationColorTest {
4444 colors = arrayOf(" &c" , " &a" ),
4545 mainColor = " &7"
4646 )
47- assertEquals(" &7defaultValue is &ccolorized&7 and &acolorized&7." , translation.translate())
47+ assertEquals(" &7defaultValue is &ccolorized&7 and &acolorized&7." , translation.translate(colorize = false ))
4848
4949 }
5050}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import org.junit.jupiter.api.BeforeEach
77import org.junit.jupiter.api.Test
88import java.io.File
99
10- internal class TranslationTest {
10+ internal class TranslationManagerTest {
1111
1212 companion object {
1313 @BeforeAll
You can’t perform that action at this time.
0 commit comments