diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-02 23:27:32 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-02 23:27:32 +0100 |
| commit | 2329d0236ea39fd119b1199ae40d2b9f5a316506 (patch) | |
| tree | 74f5df6efca79fe46c96313a0ef7756e9cdad7d1 /format/common/src/test | |
| parent | 8ae382468d2fea8b42bc9d2e3bd67be9144873ed (diff) | |
| download | HardenedPass-2329d0236ea39fd119b1199ae40d2b9f5a316506.tar.gz HardenedPass-2329d0236ea39fd119b1199ae40d2b9f5a316506.zip | |
feat(app): add the entry view model and the OTP period
Totp now carries its period, so the entry view can draw how much of the
code's lifetime is left. EntryFields groups a decrypted entry the way the
spec lays it out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'format/common/src/test')
| -rw-r--r-- | format/common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/format/common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt b/format/common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt index 4efb140b..b7d41fd1 100644 --- a/format/common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt +++ b/format/common/src/test/kotlin/app/passwordstore/data/passfile/PasswordEntryTest.kt @@ -134,6 +134,7 @@ class PasswordEntryTest { val otp = expectMostRecentItem() assertEquals("818800", otp.value) assertEquals(30.seconds, otp.remainingTime) + assertEquals(30.seconds, otp.period) cancelAndIgnoreRemainingEvents() } } |
