@@ -8,7 +8,8 @@ const OLD_BASE_URL =
88
99Deno . test ( "Storyblok Image CDN - extract" , async ( t ) => {
1010 await t . step ( "should extract operations from new URL format" , ( ) => {
11- const url = `${ NEW_BASE_URL } /m/400x300/filters:format(webp):focal(150x100:250x200)` ;
11+ const url =
12+ `${ NEW_BASE_URL } /m/400x300/filters:format(webp):focal(150x100:250x200)` ;
1213 const result = extract ( url ) ;
1314 assertEquals ( result , {
1415 src : NEW_BASE_URL ,
@@ -49,8 +50,6 @@ Deno.test("Storyblok Image CDN - extract", async (t) => {
4950 } ,
5051 } ) ;
5152 } ) ;
52-
53-
5453} ) ;
5554
5655Deno . test ( "Storyblok Image CDN - generate" , async ( t ) => {
@@ -97,11 +96,14 @@ Deno.test("Storyblok Image CDN - generate", async (t) => {
9796 const result = generate ( NEW_BASE_URL , {
9897 width : 400 ,
9998 height : 300 ,
100- filters :{
101- focal : "150x150:250x250"
102- }
99+ filters : {
100+ focal : "150x150:250x250" ,
101+ } ,
103102 } ) ;
104- assertEquals ( result , `${ NEW_BASE_URL } /m/400x300/filters:focal(150x150:250x250)` ) ;
103+ assertEquals (
104+ result ,
105+ `${ NEW_BASE_URL } /m/400x300/filters:focal(150x150:250x250)` ,
106+ ) ;
105107 } ) ;
106108} ) ;
107109
@@ -111,9 +113,9 @@ Deno.test("Storyblok Image CDN - transform", async (t) => {
111113 width : 500 ,
112114 height : 400 ,
113115 format : "webp" ,
114- filters :{
115- focal : "150x150:250x250"
116- }
116+ filters : {
117+ focal : "150x150:250x250" ,
118+ } ,
117119 } ) ;
118120 assertEquals (
119121 result ,
@@ -142,5 +144,3 @@ Deno.test("Storyblok Image CDN - transform", async (t) => {
142144 ) ;
143145 } ) ;
144146} ) ;
145-
146-
0 commit comments