diff --git a/client/components/src/test/kotlin/com/zegreatrob/coupling/client/components/PinButtonTest.kt b/client/components/src/test/kotlin/com/zegreatrob/coupling/client/components/PinButtonTest.kt index 3f2a305912..ef9e3a53bd 100644 --- a/client/components/src/test/kotlin/com/zegreatrob/coupling/client/components/PinButtonTest.kt +++ b/client/components/src/test/kotlin/com/zegreatrob/coupling/client/components/PinButtonTest.kt @@ -4,8 +4,7 @@ import com.zegreatrob.coupling.client.components.pin.PinButton import com.zegreatrob.coupling.model.pin.Pin import com.zegreatrob.minassert.assertIsEqualTo import com.zegreatrob.testmints.setup -import com.zegreatrob.wrapper.testinglibrary.react.TestingLibraryReact -import com.zegreatrob.wrapper.testinglibrary.react.render +import com.zegreatrob.wrapper.testinglibrary.react.TestingLibraryReact.render import kotlinx.dom.hasClass import org.w3c.dom.Element import kotlin.test.Test @@ -16,7 +15,7 @@ class PinButtonTest { fun whenGivenPinWithSimpleIconWillUseStandardFontAwesomeTag() = setup(object { val pin = Pin(icon = "angry") }) exercise { - TestingLibraryReact.render { PinButton(pin, onClick = {}) } + render { PinButton(pin, onClick = {}) } } verify { wrapper -> wrapper.baseElement.getElementsByTagName("i").item(0) .assertIconHasClasses("fa", "fa-angry") @@ -26,7 +25,7 @@ class PinButtonTest { fun whenGivenPinWithAlreadyDecoratedIconWillUseStandardFontAwesomeTag() = setup(object { val pin = Pin(icon = "fa-angry") }) exercise { - TestingLibraryReact.render { PinButton(pin, onClick = {}) } + render { PinButton(pin, onClick = {}) } } verify { wrapper -> wrapper.baseElement.getElementsByTagName("i").item(0) .assertIconHasClasses("fa", "fa-angry") @@ -36,7 +35,7 @@ class PinButtonTest { fun whenGivenPinWithFullyDecoratedIconWillUseStandardFontAwesomeTag() = setup(object { val pin = Pin(icon = "far fa-angry") }) exercise { - TestingLibraryReact.render { PinButton(pin, onClick = {}) } + render { PinButton(pin, onClick = {}) } } verify { wrapper -> wrapper.baseElement.getElementsByTagName("i").item(0) .assertIconHasClasses("far", "fa-angry")