https://kotlinlang.org logo
#kotest
Title
j

JP

10/09/2020, 3:12 PM
Does anyone have experience using Kotest with Exposed? I'm trying to verify that inserts occurred on a table I have, but I can't find a good way to mock the table and
verify
the call. I ended up trying something like
Copy code
mockkObject(transaction { Users.insert { it[userId] = 123 } })
verify { transaction { Users.insert { it[userId] = 123 } } }
but that just creates an actual transaction that attempts to insert