Skip to content

Commit

Permalink
Update comment linting errors
Browse files Browse the repository at this point in the history
Errors:
- Replace the block comment with an EOL comment
- A multiline expression should start on a new line
  • Loading branch information
jennantilla authored and jinliu9508 committed Feb 6, 2024
1 parent c5ed180 commit 910f108
Showing 1 changed file with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@ import org.junit.runner.RunWith
class PropertiesModelTests : FunSpec({

test("successfully initializes varying tag names") {
/* Given */
val varyingTags = JSONObject()
.putJSONObject(PropertiesModel::tags.name) {
it.put("value", "data1")
.put("isEmpty", "data2")
.put("object", "data3")
.put("1", "data4")
.put("false", "data5")
.put("15.7", "data6")
}
// Given
val varyingTags =
JSONObject()
.putJSONObject(PropertiesModel::tags.name) {
it.put("value", "data1")
.put("isEmpty", "data2")
.put("object", "data3")
.put("1", "data4")
.put("false", "data5")
.put("15.7", "data6")
}
val propertiesModel = PropertiesModel()

/* When */
// When
propertiesModel.initializeFromJson(varyingTags)
val tagsModel = propertiesModel.tags

/* Then */
// Then
tagsModel["value"] shouldBe "data1"
tagsModel["isEmpty"] shouldBe "data2"
tagsModel["object"] shouldBe "data3"
Expand Down

0 comments on commit 910f108

Please sign in to comment.