Skip to content

Commit 1348afb

Browse files
author
Francisco Solis
committed
Updated tests
1 parent 2ccc0da commit 1348afb

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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

src/test/kotlin/xyz/theprogramsrc/translationsmodule/TranslationColorTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

src/test/kotlin/xyz/theprogramsrc/translationsmodule/TranslationTest.kt renamed to src/test/kotlin/xyz/theprogramsrc/translationsmodule/TranslationManagerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import org.junit.jupiter.api.BeforeEach
77
import org.junit.jupiter.api.Test
88
import java.io.File
99

10-
internal class TranslationTest {
10+
internal class TranslationManagerTest {
1111

1212
companion object {
1313
@BeforeAll

0 commit comments

Comments
 (0)