summaryrefslogtreecommitdiff
path: root/format-common
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2022-05-02 23:21:58 +0530
committerGitHub <noreply@github.com>2022-05-02 23:21:58 +0530
commit07a83a33b878791257d1aa2282e71c1d2f301254 (patch)
tree0c02e2f560049831c6bd095cd1c1a0d3d958b58b /format-common
parente025b120ed18668418e8cf66830a0590dbc4ab08 (diff)
chore(deps): update dependency app.cash.turbine:turbine to v0.8.0 (#1890)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'format-common')
-rw-r--r--format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt b/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt
index 55c62533..201eb611 100644
--- a/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt
+++ b/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt
@@ -5,8 +5,8 @@
package dev.msfjarvis.aps.data.passfile
+import app.cash.turbine.test
import dev.msfjarvis.aps.test.CoroutineTestRule
-import dev.msfjarvis.aps.test.test2
import dev.msfjarvis.aps.util.time.TestUserClock
import dev.msfjarvis.aps.util.time.UserClock
import dev.msfjarvis.aps.util.totp.TotpFinder
@@ -135,7 +135,7 @@ class PasswordEntryTest {
fun testGeneratesOtpFromTotpUri() = runTest {
val entry = makeEntry("secret\nextra\n$TOTP_URI")
assertTrue(entry.hasTotp())
- entry.totp.test2 {
+ entry.totp.test {
val otp = expectMostRecentItem()
assertEquals("818800", otp.value)
assertEquals(30.seconds, otp.remainingTime)
@@ -152,7 +152,7 @@ class PasswordEntryTest {
fun testGeneratedOtpHasCorrectRemainingTime() = runTest {
val entry = makeEntry("secret\nextra\n$TOTP_URI", TestUserClock.withAddedSeconds(5))
assertTrue(entry.hasTotp())
- entry.totp.test2 {
+ entry.totp.test {
val otp = expectMostRecentItem()
assertEquals("818800", otp.value)
assertEquals(25.seconds, otp.remainingTime)
@@ -164,7 +164,7 @@ class PasswordEntryTest {
fun testGeneratesOtpWithOnlyUriInFile() = runTest {
val entry = makeEntry(TOTP_URI)
assertNull(entry.password)
- entry.totp.test2 {
+ entry.totp.test {
val otp = expectMostRecentItem()
assertEquals("818800", otp.value)
assertEquals(30.seconds, otp.remainingTime)