File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
OneSignalSDK/onesignal/core/src/test/java/com/onesignal/user/internal/properties Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,24 @@ import org.junit.runner.RunWith
1111class PropertiesModelTests : FunSpec ({
1212
1313 test("successfully initializes varying tag names") {
14- /* Given */
15- val varyingTags = JSONObject ()
16- .putJSONObject(PropertiesModel ::tags.name) {
17- it.put("value", "data1")
18- .put("isEmpty", "data2")
19- .put("object", "data3")
20- .put("1", "data4")
21- .put("false", "data5")
22- .put("15.7", "data6")
23- }
14+ // Given
15+ val varyingTags =
16+ JSONObject ()
17+ .putJSONObject(PropertiesModel ::tags.name) {
18+ it.put("value", "data1")
19+ .put("isEmpty", "data2")
20+ .put("object", "data3")
21+ .put("1", "data4")
22+ .put("false", "data5")
23+ .put("15.7", "data6")
24+ }
2425 val propertiesModel = PropertiesModel ()
2526
26- /* When */
27+ // When
2728 propertiesModel.initializeFromJson(varyingTags)
2829 val tagsModel = propertiesModel.tags
2930
30- /* Then */
31+ // Then
3132 tagsModel[" value" ] shouldBe " data1"
3233 tagsModel[" isEmpty" ] shouldBe " data2"
3334 tagsModel[" object" ] shouldBe " data3"
You can’t perform that action at this time.
0 commit comments