Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Mar 12, 2024
1 parent e27e3fa commit f5851f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers/api/v1/suggest_queries_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SuggestQueriesControllerTest < ActionDispatch::IntegrationTest
end

test "should set right content type when call show" do
valid_get api_v1_suggest_queries_url("0x3b238b3326d10ec000417b68bc715f17e86293d6cdbcb3fd8a628ad4a0b756f6")
valid_get api_v1_suggest_queries_url, params: { q: "0x3b238b3326d10ec000417b68bc715f17e86293d6cdbcb3fd8a628ad4a0b756f6" }

assert_equal "application/vnd.api+json", response.media_type
end
Expand Down Expand Up @@ -191,7 +191,7 @@ class SuggestQueriesControllerTest < ActionDispatch::IntegrationTest
:type_script,
code_hash: Settings.type_id_code_hash,
args: "0x8536c9d5d908bd89fc70099e4284870708b6632356aad98734fcf43f6f71c304",
script_hash: "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8"
script_hash: "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
)
response_json = TypeScriptSerializer.new(type_script).serialized_json

Expand Down

0 comments on commit f5851f3

Please sign in to comment.