diff --git a/parsely/src/test/java/com/parsely/parselyandroid/ParselyAPIConnectionTest.kt b/parsely/src/test/java/com/parsely/parselyandroid/ParselyAPIConnectionTest.kt index bc725fee..815abc93 100644 --- a/parsely/src/test/java/com/parsely/parselyandroid/ParselyAPIConnectionTest.kt +++ b/parsely/src/test/java/com/parsely/parselyandroid/ParselyAPIConnectionTest.kt @@ -97,18 +97,8 @@ class ParselyAPIConnectionTest { } companion object { - val pixelPayload = """ -{ - "events": [ - { - "idsite": "example.com" - }, - { - "idsite": "example2.com" - } - ] -} -""".trimIndent() + val pixelPayload: String = + this::class.java.getResource("pixel_payload.json")?.readText().orEmpty() } private class FakeTracker : ParselyTracker( diff --git a/parsely/src/test/resources/pixel_payload.json b/parsely/src/test/resources/pixel_payload.json new file mode 100644 index 00000000..803b4930 --- /dev/null +++ b/parsely/src/test/resources/pixel_payload.json @@ -0,0 +1,10 @@ +{ + "events": [ + { + "idsite": "example.com" + }, + { + "idsite": "example2.com" + } + ] +}