Skip to content

Commit

Permalink
add translationStatus test
Browse files Browse the repository at this point in the history
  • Loading branch information
zingmane committed Oct 23, 2023
1 parent 2163701 commit c361c1b
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,25 @@ class TranslationStatusTest extends TableauxTestBase {
}
}
}

@Test
def retrieveTranslationStatusWithoutAnyMultilangColumn(implicit c: TestContext) = okTest {

for {
tableId <- createDefaultTable()
translationStatus <- sendRequest("GET", s"/tables/translationStatus")
} yield {

println(s"translationStatus: $translationStatus")
val expectedTranslationStatus = Json.obj(
"tables" -> Json.emptyArr(),
"translationStatus" -> Json.obj(
"de-DE" -> 1.0,
"en-GB" -> 1.0
)
)

assertJSONEquals(expectedTranslationStatus, translationStatus)
}
}
}

0 comments on commit c361c1b

Please sign in to comment.