diff options
Diffstat (limited to 'src/test/scala/xyz')
-rw-r--r-- | src/test/scala/xyz/driver/pdsuicommon/BaseSuite.scala | 1 | ||||
-rw-r--r-- | src/test/scala/xyz/driver/pdsuicommon/utils/DiffUtils.scala | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/test/scala/xyz/driver/pdsuicommon/BaseSuite.scala b/src/test/scala/xyz/driver/pdsuicommon/BaseSuite.scala index 54c46c3..7c9d8c4 100644 --- a/src/test/scala/xyz/driver/pdsuicommon/BaseSuite.scala +++ b/src/test/scala/xyz/driver/pdsuicommon/BaseSuite.scala @@ -20,7 +20,6 @@ trait BaseSuite extends FreeSpecLike with DiffUtils with ScalaFutures { email = Email(email), name = "Test", roles = Set(role), - passwordHash = PasswordHash(password), latestActivity = Some(LocalDateTime.now(ZoneId.of("Z"))), deleted = None ) diff --git a/src/test/scala/xyz/driver/pdsuicommon/utils/DiffUtils.scala b/src/test/scala/xyz/driver/pdsuicommon/utils/DiffUtils.scala index cc2ef0a..156cb08 100644 --- a/src/test/scala/xyz/driver/pdsuicommon/utils/DiffUtils.scala +++ b/src/test/scala/xyz/driver/pdsuicommon/utils/DiffUtils.scala @@ -5,7 +5,6 @@ import java.time.{LocalDate, LocalDateTime} import ai.x.diff._ import org.scalatest.Assertions -import xyz.driver.pdsuicommon.domain.PasswordHash import xyz.driver.pdsuidomain.entities.{Document, ExtractedData, MedicalRecord} import scala.io.AnsiColor @@ -41,14 +40,6 @@ trait DiffUtils { this: Assertions => } } - implicit def passwordHashDiffShow: DiffShow[PasswordHash] = new DiffShow[PasswordHash] { - def show(x: PasswordHash): String = s"PasswordHash($x)" - def diff(left: PasswordHash, right: PasswordHash): Comparison = { - if (left.equals(right)) Identical(show(left)) - else Different(showChange(left, right)) - } - } - implicit def metaDiffShow: DiffShow[MedicalRecord.Meta] = new DiffShow[MedicalRecord.Meta] { def show(x: MedicalRecord.Meta): String = s"MedicalRecord.Meta($x)" def diff(left: MedicalRecord.Meta, right: MedicalRecord.Meta): Comparison = { |