Skip to content

Commit

Permalink
render requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Jul 2, 2024
1 parent 790b752 commit 472ab94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/polar_web/controllers/publish/product_json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ defmodule PolarWeb.Publish.ProductJSON do
%{
data: %{
id: product.id,
key: Product.key(product)
key: Product.key(product),
requirements: product.requirements
}
}
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ defmodule PolarWeb.Publish.ProductControllerTest do

assert %{"data" => data} = json_response(conn, 200)

assert %{"id" => _id, "key" => _key} = data
assert %{"id" => _id, "key" => _key, "requirements" => requirements} = data

assert %{"secureboot" => "false"} = requirements
end
end
end

0 comments on commit 472ab94

Please sign in to comment.