Skip to content

Commit ad08c67

Browse files
mixie-bot[bot]github-actions[bot]
authored andcommitted
chore: format
1 parent b40b6e4 commit ad08c67

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/providers/storyblok.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const OLD_BASE_URL =
88

99
Deno.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

5655
Deno.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

Comments
 (0)