Skip to content

Commit

Permalink
test(task): enable comment-outed assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Jul 20, 2024
1 parent a688372 commit b74af35
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,11 @@ class CreateAuthorSpec extends AnyWordSpec {
"create author" in {
CreateAuthor.run(List(author.name.value, author.displayName.value, "pass")).unsafeRunSync()

// TODO: Need assertion. Sometimes return `None` after change 9817e9fc7a57cb1e8eac1c168a715f9486ed0dc7
// val a = authorService.findByName(AuthorName(author.name.value)).unsafeRunSync()
// assert(a.get.name.value === author.name.value)
val a = authorService.findByName(AuthorName(author.name.value)).unsafeRunSync()
assert(a.get.name.value === author.name.value)

// NOTE: just for create test data
CreateAuthor.run(List(author2.name.value, author2.displayName.value, "pass")).unsafeRunSync()
// NOTE: avoid test failure. This is a just test data no need assert.
// assert(a2.get.name.value === author2.name.value)

// CreateAuthor.main(Array("notexistsuser", "NA", "pass"))
}

"not be create author" in {
Expand Down

0 comments on commit b74af35

Please sign in to comment.