Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jan 11, 2024
1 parent 2c4aadf commit 853f25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/Plack-MIME/fallback.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use Test::Requires qw(MIME::Types);
use Plack::MIME;
use MIME::Types 'by_suffix';

is( Plack::MIME->mime_type(".vcd"), undef );
is( Plack::MIME->mime_type(".ncm"), undef );

Plack::MIME->set_fallback(sub { (by_suffix $_[0])[0] });
is( Plack::MIME->mime_type(".vcd"), "application/x-cdlink" );
is( Plack::MIME->mime_type(".ncm"), "application/vnd.nokia.configuration-message" );

done_testing;

0 comments on commit 853f25d

Please sign in to comment.