Skip to content

Commit

Permalink
Merge pull request #1891 from OneSignal/fix/PropertiesModelTests_linting
Browse files Browse the repository at this point in the history
Update comment linting errors on PropertiesModelTests
  • Loading branch information
jennantilla authored Nov 3, 2023
2 parents 7d994a9 + f5fe01e commit a86c887
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 a86c887

Please sign in to comment.