Skip to content

Commit

Permalink
refactor: move JSON pixel payload to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Oct 23, 2023
1 parent cf858aa commit 0f21123
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 10 additions & 0 deletions parsely/src/test/resources/pixel_payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"events": [
{
"idsite": "example.com"
},
{
"idsite": "example2.com"
}
]
}

0 comments on commit 0f21123

Please sign in to comment.