Skip to content

Commit

Permalink
Fix utility module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theMr17 committed Jul 3, 2024
1 parent 10c2e8f commit 8fce57a
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1171,13 +1171,14 @@ class EventBundleCreatorTest {

val typeName = eventBundleCreator.fillEventBundle(eventLog, bundle)
assertThat(typeName).isEqualTo("view_existing_hint")
assertThat(bundle).hasSize(18)
assertThat(bundle).hasSize(19)
assertThat(bundle).longInt("timestamp").isEqualTo(TEST_TIMESTAMP_1)
assertThat(bundle).string("priority").isEqualTo("essential")
assertThat(bundle).integer("event_type").isEqualTo(VIEW_EXISTING_HINT_CONTEXT.number)
assertThat(bundle).integer("android_sdk").isEqualTo(TEST_ANDROID_SDK_VERSION)
assertThat(bundle).string("app_version_name").isEqualTo(TEST_APP_VERSION_NAME)
assertThat(bundle).integer("app_version_code").isEqualTo(TEST_APP_VERSION_CODE)
assertThat(bundle).string("ed_classroom_id").isEqualTo(TEST_CLASSROOM_ID)
assertThat(bundle).string("ed_topic_id").isEqualTo(TEST_TOPIC_ID)
assertThat(bundle).string("ed_story_id").isEqualTo(TEST_STORY_ID)
assertThat(bundle).string("ed_exploration_id").isEqualTo(TEST_EXPLORATION_ID)
Expand All @@ -1196,7 +1197,7 @@ class EventBundleCreatorTest {

val typeName = eventBundleCreator.fillEventBundle(eventLog, bundle)
assertThat(typeName).isEqualTo("view_existing_hint")
assertThat(bundle).hasSize(20)
assertThat(bundle).hasSize(21)
assertThat(bundle).longInt("timestamp").isEqualTo(TEST_TIMESTAMP_1)
assertThat(bundle).string("priority").isEqualTo("essential")
assertThat(bundle).integer("event_type").isEqualTo(VIEW_EXISTING_HINT_CONTEXT.number)
Expand Down Expand Up @@ -1327,13 +1328,14 @@ class EventBundleCreatorTest {

val typeName = eventBundleCreator.fillEventBundle(eventLog, bundle)
assertThat(typeName).isEqualTo("view_existing_solution")
assertThat(bundle).hasSize(17)
assertThat(bundle).hasSize(18)
assertThat(bundle).longInt("timestamp").isEqualTo(TEST_TIMESTAMP_1)
assertThat(bundle).string("priority").isEqualTo("essential")
assertThat(bundle).integer("event_type").isEqualTo(VIEW_EXISTING_SOLUTION_CONTEXT.number)
assertThat(bundle).integer("android_sdk").isEqualTo(TEST_ANDROID_SDK_VERSION)
assertThat(bundle).string("app_version_name").isEqualTo(TEST_APP_VERSION_NAME)
assertThat(bundle).integer("app_version_code").isEqualTo(TEST_APP_VERSION_CODE)
assertThat(bundle).string("classroom_id").isEqualTo(TEST_CLASSROOM_ID)
assertThat(bundle).string("topic_id").isEqualTo(TEST_TOPIC_ID)
assertThat(bundle).string("story_id").isEqualTo(TEST_STORY_ID)
assertThat(bundle).string("exploration_id").isEqualTo(TEST_EXPLORATION_ID)
Expand All @@ -1351,7 +1353,7 @@ class EventBundleCreatorTest {

val typeName = eventBundleCreator.fillEventBundle(eventLog, bundle)
assertThat(typeName).isEqualTo("view_existing_solution")
assertThat(bundle).hasSize(19)
assertThat(bundle).hasSize(20)
assertThat(bundle).longInt("timestamp").isEqualTo(TEST_TIMESTAMP_1)
assertThat(bundle).string("priority").isEqualTo("essential")
assertThat(bundle).integer("event_type").isEqualTo(VIEW_EXISTING_SOLUTION_CONTEXT.number)
Expand Down
Loading

0 comments on commit 8fce57a

Please sign in to comment.