diff --git a/src/test/kotlin/test/initialcapacity/streaming/messages/MessageProviderTest.kt b/src/test/kotlin/test/initialcapacity/streaming/messages/MessageProviderTest.kt new file mode 100644 index 0000000..e50a161 --- /dev/null +++ b/src/test/kotlin/test/initialcapacity/streaming/messages/MessageProviderTest.kt @@ -0,0 +1,17 @@ +package test.initialcapacity.streaming.messages + +import io.initialcapacity.streaming.messages.MessageProvider +import kotlinx.coroutines.runBlocking +import kotlin.test.Test +import kotlin.test.assertEquals +import kotlin.time.Duration + +class MessageProviderTest { + @Test + fun testFetchAll() = runBlocking { + assertEquals( + listOf("Here's some slow content.", "It took a while to load.", "And didn't use any javascript."), + MessageProvider(Duration.ZERO).fetchAll() + ) + } +} \ No newline at end of file