Skip to content

Commit

Permalink
fix quantity json formatter for input decimal like 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hagay3 committed Dec 17, 2024
1 parent 604d771 commit 9bad322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/test/scala/skuber/model/ResourceSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ class ResourceSpec extends Specification {
// Deserialize into ResourceList
import skuber.json.format.quantityFormat
val result: JsResult[List[Quantity]] = Json.fromJson[List[Quantity]](json)
val amoutList = result.get.map(_.amount)
val amountList = result.get.map(_.amount)

amoutList mustEqual List(1.3, 1.2, 0.05, 1048576, 1, 2)
amountList mustEqual List(1.3, 1.2, 0.05, 1048576, 1, 2)
}
}

Expand Down

0 comments on commit 9bad322

Please sign in to comment.