File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import * as t from "tap";
22import { safeDecodeURIComponent } from "./safeDecodeURIComponent" ;
33
44t . test ( "it decodes a URI component" , async ( t ) => {
5- t . equal ( decodeURIComponent ( "%20" ) , " " ) ;
6- t . equal ( decodeURIComponent ( "%3A" ) , ":" ) ;
7- t . equal ( decodeURIComponent ( "%2F" ) , "/" ) ;
8- t . equal ( decodeURIComponent ( "test%20test" ) , "test test" ) ;
9- t . equal ( decodeURIComponent ( "test%3Atest" ) , "test:test" ) ;
5+ t . equal ( safeDecodeURIComponent ( "%20" ) , " " ) ;
6+ t . equal ( safeDecodeURIComponent ( "%3A" ) , ":" ) ;
7+ t . equal ( safeDecodeURIComponent ( "%2F" ) , "/" ) ;
8+ t . equal ( safeDecodeURIComponent ( "test%20test" ) , "test test" ) ;
9+ t . equal ( safeDecodeURIComponent ( "test%3Atest" ) , "test:test" ) ;
1010} ) ;
1111
1212t . test ( "it returns undefined for invalid URI components" , async ( t ) => {
You can’t perform that action at this time.
0 commit comments