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
11
11
class PropertiesModelTests : FunSpec ({
12
12
13
13
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
+ }
24
25
val propertiesModel = PropertiesModel ()
25
26
26
- /* When */
27
+ // When
27
28
propertiesModel.initializeFromJson(varyingTags)
28
29
val tagsModel = propertiesModel.tags
29
30
30
- /* Then */
31
+ // Then
31
32
tagsModel[" value" ] shouldBe " data1"
32
33
tagsModel[" isEmpty" ] shouldBe " data2"
33
34
tagsModel[" object" ] shouldBe " data3"
You can’t perform that action at this time.
0 commit comments