Skip to content

Commit

Permalink
Track API change in test
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Aug 26, 2024
1 parent 3057e08 commit 06d2e9c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import com.example.redwood.testapp.testing.TestSchemaTestingWidgetFactory
import com.example.redwood.testapp.widget.TestSchemaWidgetSystem
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.coroutineScope
import kotlinx.serialization.json.Json

/**
* Like [TestSchemaTester], but this also hooks up Redwood's protocol mechanism. That's necessary
Expand All @@ -64,7 +65,7 @@ class ViewRecyclingTester(
container = widgetContainer,
factory = widgetProtocolFactory,
eventSink = { event ->
guestAdapter.sendEvent(event)
guestAdapter.sendEvent(event.toProtocol(Json.Default))
},
)

Expand Down

0 comments on commit 06d2e9c

Please sign in to comment.