Skip to content

Commit

Permalink
ignore docs (generated)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
algolia-bot and millotp committed Oct 28, 2024
1 parent d73f6e6 commit fb2b39b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class InsightsTestE2E extends AnyFunSuite {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
timestamp = Some(1729641600000L),
timestamp = Some(1729900800000L),
objectIDs = Seq("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7"
),
Expand All @@ -59,7 +59,7 @@ class InsightsTestE2E extends AnyFunSuite {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
timestamp = Some(1729641600000L),
timestamp = Some(1729900800000L),
objectIDs = Seq("9780545139700", "9780439784542")
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ class InsightsTest extends AnyFunSuite {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
timestamp = Some(1729641600000L),
timestamp = Some(1729900800000L),
objectIDs = Seq("9780545139700", "9780439784542"),
queryID = "43b15df305339e827f0ac0bdc5ebcaa7"
),
Expand All @@ -584,7 +584,7 @@ class InsightsTest extends AnyFunSuite {
index = "products",
userToken = "user-123456",
authenticatedUserToken = Some("user-123456"),
timestamp = Some(1729641600000L),
timestamp = Some(1729900800000L),
objectIDs = Seq("9780545139700", "9780439784542")
)
)
Expand All @@ -597,7 +597,7 @@ class InsightsTest extends AnyFunSuite {
assert(res.path == "/1/events")
assert(res.method == "POST")
val expectedBody = parse(
"""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1729641600000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1729641600000,"objectIDs":["9780545139700","9780439784542"]}]}"""
"""{"events":[{"eventType":"conversion","eventName":"Product Purchased","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1729900800000,"objectIDs":["9780545139700","9780439784542"],"queryID":"43b15df305339e827f0ac0bdc5ebcaa7"},{"eventType":"view","eventName":"Product Detail Page Viewed","index":"products","userToken":"user-123456","authenticatedUserToken":"user-123456","timestamp":1729900800000,"objectIDs":["9780545139700","9780439784542"]}]}"""
)
val actualBody = parse(res.body.get)
assert(actualBody == expectedBody)
Expand Down

0 comments on commit fb2b39b

Please sign in to comment.