Skip to content

Commit

Permalink
Add headset to the list of valid platform codes (close #851)
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein authored and benjben committed Jan 22, 2024
1 parent f218b79 commit 1945bdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ object MiscEnrichments {
case "cnsl" => "cnsl".asRight // Games Console
case "tv" => "tv".asRight // Connected TV
case "srv" => "srv".asRight // Server-side App
case "headset" => "headset".asRight // AR/VR Headset
case _ =>
val msg = "not recognized as a tracking platform"
val f = FailureDetails.EnrichmentFailureMessage.InputData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class ExtractPlatformSpec extends Specification with DataTables {
"valid connected TV" !! "tv" ! "tv".asRight |
"valid games console" !! "cnsl" ! "cnsl".asRight |
"valid iot (internet of things)" !! "iot" ! "iot".asRight |
"valid headset" !! "headset" ! "headset".asRight |
"invalid empty" !! "" ! err("").asLeft |
"invalid null" !! null ! err(null).asLeft |
"invalid platform" !! "ma" ! err("ma").asLeft |> { (_, input, expected) =>
Expand Down

0 comments on commit 1945bdf

Please sign in to comment.