@@ -15,7 +15,7 @@ describe("unicode-names adapter handler", () => {
1515 const { runSourceAdapter } = await setupAdapterTest ( ) ;
1616
1717 mockFetch ( [
18- [ "GET https://unicode-proxy.ucdjs.dev/proxy/ 15.0.0/ucd/UnicodeData.txt" , ( ) => HttpResponse . text ( "1F600;GRINNING FACE" ) ] ,
18+ [ "GET https://unicode-proxy.ucdjs.dev/15.0.0/ucd/UnicodeData.txt" , ( ) => HttpResponse . text ( "1F600;GRINNING FACE" ) ] ,
1919 ] ) ;
2020
2121 const result = await runSourceAdapter ( unicodeNamesHandler , mockContext ) ;
@@ -28,7 +28,7 @@ describe("unicode-names adapter handler", () => {
2828 const { runSourceAdapter } = await setupAdapterTest ( ) ;
2929
3030 mockFetch ( [
31- [ "GET https://unicode-proxy.ucdjs.dev/proxy/ 1.1-Update/UnicodeData-1.1.5.txt" , ( ) => HttpResponse . text ( "1F600;GRINNING FACE" ) ] ,
31+ [ "GET https://unicode-proxy.ucdjs.dev/1.1-Update/UnicodeData-1.1.5.txt" , ( ) => HttpResponse . text ( "1F600;GRINNING FACE" ) ] ,
3232 ] ) ;
3333
3434 const result = await runSourceAdapter ( unicodeNamesHandler , { ...mockContext , emoji_version : "1.0" } ) ;
@@ -41,7 +41,7 @@ describe("unicode-names adapter handler", () => {
4141 const { runSourceAdapter } = await setupAdapterTest ( ) ;
4242
4343 mockFetch ( [
44- [ "GET https://unicode-proxy.ucdjs.dev/proxy/ 15.0.0/ucd/UnicodeData.txt" , ( ) => HttpResponse . text (
44+ [ "GET https://unicode-proxy.ucdjs.dev/15.0.0/ucd/UnicodeData.txt" , ( ) => HttpResponse . text (
4545 "1F600;GRINNING FACE\n"
4646 + "1F601;GRINNING FACE WITH SMILING EYES\n"
4747 + "1F602;FACE WITH TEARS OF JOY" ,
@@ -60,7 +60,7 @@ describe("unicode-names adapter handler", () => {
6060 const { runSourceAdapter } = await setupAdapterTest ( ) ;
6161
6262 mockFetch ( [
63- [ "GET https://unicode-proxy.ucdjs.dev/proxy/ 15.0.0/ucd/UnicodeData.txt" , ( ) => HttpResponse . text ( "1F600" ) ] ,
63+ [ "GET https://unicode-proxy.ucdjs.dev/15.0.0/ucd/UnicodeData.txt" , ( ) => HttpResponse . text ( "1F600" ) ] ,
6464 ] ) ;
6565
6666 await expect ( runSourceAdapter ( unicodeNamesHandler , mockContext ) )
@@ -72,7 +72,7 @@ describe("unicode-names adapter handler", () => {
7272 const { runSourceAdapter } = await setupAdapterTest ( ) ;
7373
7474 mockFetch ( [
75- [ "GET https://unicode-proxy.ucdjs.dev/proxy/ 15.0.0/ucd/UnicodeData.txt" , ( ) => HttpResponse . text ( "" ) ] ,
75+ [ "GET https://unicode-proxy.ucdjs.dev/15.0.0/ucd/UnicodeData.txt" , ( ) => HttpResponse . text ( "" ) ] ,
7676 ] ) ;
7777
7878 const result = await runSourceAdapter ( unicodeNamesHandler , mockContext ) ;
@@ -82,7 +82,7 @@ describe("unicode-names adapter handler", () => {
8282 it ( "should handle network errors" , async ( ) => {
8383 const { runSourceAdapter } = await setupAdapterTest ( ) ;
8484
85- mockFetch ( `GET https://unicode-proxy.ucdjs.dev/proxy/ ${ mockContext . emoji_version } .0/ucd/UnicodeData.txt` , ( ) => {
85+ mockFetch ( `GET https://unicode-proxy.ucdjs.dev/${ mockContext . emoji_version } .0/ucd/UnicodeData.txt` , ( ) => {
8686 return HttpResponse . error ( ) ;
8787 } ) ;
8888
@@ -97,7 +97,7 @@ describe("unicode-names adapter handler", () => {
9797
9898 let fetchCount = 0 ;
9999 mockFetch ( [
100- [ "GET https://unicode-proxy.ucdjs.dev/proxy/ 15.0.0/ucd/UnicodeData.txt" , ( ) => {
100+ [ "GET https://unicode-proxy.ucdjs.dev/15.0.0/ucd/UnicodeData.txt" , ( ) => {
101101 fetchCount ++ ;
102102 return HttpResponse . text ( "1F600;GRINNING FACE" ) ;
103103 } ] ,
0 commit comments