Skip to content

Commit

Permalink
test: Can remove a transfer from database
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Oct 10, 2024
1 parent 54b956d commit 015d6e0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ class TransferControllerTest {
assertEquals(transfer.container.files.count(), realmTransfer.container?.files?.count())
}

@Test
fun canRemoveTransfers() = runTest {
transferController.upsert(DummyTransfer.transfer)
transferController.removeData()
assertEquals(0, transferController.getTransfers()?.count())
}

@Test
fun realmTransferListIsEmpty() {
assertTrue(transferController.getTransfers()?.isEmpty() == true)
Expand Down

0 comments on commit 015d6e0

Please sign in to comment.