Skip to content

Commit

Permalink
fix: build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
testersen committed Nov 11, 2023
1 parent ce96ee0 commit 1d0c7ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions color-env/src/test/kotlin/DeriveStylesTests.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import no.telenor.kt.color.Styles
import no.telenor.kt.env.*
import no.telenor.kt.env.Construct.Companion.from
import no.telenor.kt.env.Env
import no.telenor.kt.env.EnvConstructor
import no.telenor.kt.env.Environment
import no.telenor.kt.env.EnvironmentSnapshot
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Test
Expand Down Expand Up @@ -33,7 +37,7 @@ class DeriveStylesTests {
@Test
fun `derive styles from environment variable`() {
Environment.set("NAMED_FOREGROUND", "fg=black")
val styles = construct<DifferentStyles>()
val styles = from<DifferentStyles>()
assertEquals(styles.namedForeground.run("test"), "\u001b[30mtest\u001b[39m")
}

Expand Down

0 comments on commit 1d0c7ee

Please sign in to comment.