diff --git a/test/propshaft/asset_test.rb b/test/propshaft/asset_test.rb index 83861e8..5c0749c 100644 --- a/test/propshaft/asset_test.rb +++ b/test/propshaft/asset_test.rb @@ -41,7 +41,7 @@ class Propshaft::AssetTest < ActiveSupport::TestCase assert_equal "file-not.digested-e206c34f.css", find_asset("file-not.digested.css").digested_path.to_s - assert_equal "file-is-a-sourcemap-da39a3ee5e6b4b0d3255bfef95601890afd80709.js.map", + assert_equal "file-is-a-sourcemap-da39a3ee.js.map", find_asset("file-is-a-sourcemap.js.map").digested_path.to_s end diff --git a/test/propshaft/compiler/source_mapping_urls_test.rb b/test/propshaft/compiler/source_mapping_urls_test.rb index 1f7d5cb..ca06d20 100644 --- a/test/propshaft/compiler/source_mapping_urls_test.rb +++ b/test/propshaft/compiler/source_mapping_urls_test.rb @@ -54,9 +54,9 @@ class Propshaft::Compiler::SourceMappingUrlsTest < ActiveSupport::TestCase end test "sourceMapURL is already prefixed with url_prefix" do - assert_match %r{//# sourceMappingURL=/assets/sourceMappingURL-already-prefixed.js-[a-z0-9]{8}\.map}, + assert_match %r{//# sourceMappingURL=/assets/sourceMappingURL-already-prefixed-[a-z0-9]{8}\.js\.map}, compile_asset(find_asset("sourceMappingURL-already-prefixed.js", fixture_path: "mapped")) - assert_match %r{//# sourceMappingURL=/assets/nested/sourceMappingURL-already-prefixed-nested.js-[a-z0-9]{8}\.map}, + assert_match %r{//# sourceMappingURL=/assets/nested/sourceMappingURL-already-prefixed-nested-[a-z0-9]{8}\.js\.map}, compile_asset(find_asset("nested/sourceMappingURL-already-prefixed-nested.js", fixture_path: "mapped")) end