mirror of
https://github.com/we-promise/sure.git
synced 2026-05-29 23:39:03 +00:00
fix(pwa): serve manifest for html accept headers (#1828)
* fix(pwa): serve manifest for html accept headers * style: add trailing newline to pwa controller
This commit is contained in:
11
test/controllers/pwa_controller_test.rb
Normal file
11
test/controllers/pwa_controller_test.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
require "test_helper"
|
||||
|
||||
class PwaControllerTest < ActionDispatch::IntegrationTest
|
||||
test "manifest responds successfully for html accept headers" do
|
||||
get "/manifest", headers: { "Accept" => "text/html" }
|
||||
|
||||
assert_response :success
|
||||
assert_equal "application/manifest+json", response.media_type
|
||||
assert_includes response.body, '"start_url": "/"'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user