Skip to content

Commit

Permalink
Fix scheme tests
Browse files Browse the repository at this point in the history
  • Loading branch information
upgle committed Sep 27, 2019
1 parent e13dd67 commit 13cf028
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ class SchemaTests extends FlatSpec with BeforeAndAfter with ExecHelpers with Mat
"parameters" -> Parameters().toJson,
"version" -> SemVer().toJson,
"publish" -> JsFalse,
"annotations" -> Parameters().toJson)
"annotations" -> Parameters().toJson,
"updated" -> pkg.updated.toEpochMilli.toJson)
}

it should "serialize and deserialize package binding" in {
Expand All @@ -443,7 +444,8 @@ class SchemaTests extends FlatSpec with BeforeAndAfter with ExecHelpers with Mat
"parameters" -> Parameters().toJson,
"version" -> SemVer().toJson,
"publish" -> JsFalse,
"annotations" -> Parameters().toJson)
"annotations" -> Parameters().toJson,
"updated" -> pkg.updated.toEpochMilli.toJson)
//val legacyPkgAsJson = JsObject(pkgAsJson.fields + ("binding" -> JsObject("namespace" -> "x".toJson, "name" -> "y".toJson)))
WhiskPackage.serdes.write(pkg) shouldBe pkgAsJson
WhiskPackage.serdes.read(pkgAsJson) shouldBe pkg
Expand Down

0 comments on commit 13cf028

Please sign in to comment.