Skip to content

Commit 03220e1

Browse files
committed
test: improve provider test coverage and strictness
1 parent 165a4c8 commit 03220e1

7 files changed

Lines changed: 462 additions & 336 deletions

File tree

test/e2e/__snapshots__/caisy.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"requests": [
3-
"https://assets.caisy.io/assets/b76210be-a043-4989-98df-ecaf6c6e68d8/056c27e2-81f5-4cd3-b728-cef181dfe7dc/d83ea6f0-f90a-462c-aebd-b8bc615fdce0pexelsmiguelapadrinan1591056.jpg?w=500&h=500&q=90",
3+
"https://assets.caisy.io/assets/b76210be-a043-4989-98df-ecaf6c6e68d8/2d99a80a-92a9-4865-b666-149431eb1732/edcbb3ec-660b-4683-ac8d-56b428da55e1pexelscottonbrostudio4965822.jpg?w=500&h=500&q=90",
44
],
55
"sources": [
6-
"https://assets.caisy.io/assets/b76210be-a043-4989-98df-ecaf6c6e68d8/056c27e2-81f5-4cd3-b728-cef181dfe7dc/d83ea6f0-f90a-462c-aebd-b8bc615fdce0pexelsmiguelapadrinan1591056.jpg?w=500&h=500&q=90",
6+
"https://assets.caisy.io/assets/b76210be-a043-4989-98df-ecaf6c6e68d8/2d99a80a-92a9-4865-b666-149431eb1732/edcbb3ec-660b-4683-ac8d-56b428da55e1pexelscottonbrostudio4965822.jpg?w=500&h=500&q=90",
77
],
88
}

test/e2e/__snapshots__/cloudimage.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"requests": [
3-
"https://demo.cloudimg.io/v7/https://2412819702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlIgyYELwJG6odLEyCM6i%2Fuploads%2FAHcbuKRYbIlBWO4cJ88b%2Fimage.png?alt=media&token=62ff753d-83eb-4e3f-932c-96eb72d455f1?width=400&height=250&force_format=webp&q=65&func=fit",
3+
"https://demo.cloudimg.io/v7/https://2412819702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlIgyYELwJG6odLEyCM6i%2Fuploads%2FAHcbuKRYbIlBWO4cJ88b%2Fimage.png?alt=media?width=400&height=250&force_format=webp&q=65&func=fit",
44
"https://demo.cloudimg.io/v7/sample.li/bag.jpg?width=500&height=500&func=fit",
55
"https://demo.cloudimg.io/v7/sample.li/boat.jpg?width=800&height=800&q=75&func=crop",
66
"https://demo.cloudimg.io/v7/sample.li/img.jpg?width=300&height=300&force_format=webp&func=cover",
77
],
88
"sources": [
9-
"https://demo.cloudimg.io/v7/https://2412819702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlIgyYELwJG6odLEyCM6i%2Fuploads%2FAHcbuKRYbIlBWO4cJ88b%2Fimage.png?alt=media&token=62ff753d-83eb-4e3f-932c-96eb72d455f1?width=400&height=250&force_format=webp&q=65&func=fit",
9+
"https://demo.cloudimg.io/v7/https://2412819702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlIgyYELwJG6odLEyCM6i%2Fuploads%2FAHcbuKRYbIlBWO4cJ88b%2Fimage.png?alt=media?width=400&height=250&force_format=webp&q=65&func=fit",
1010
"https://demo.cloudimg.io/v7/sample.li/bag.jpg?width=500&height=500&func=fit",
1111
"https://demo.cloudimg.io/v7/sample.li/boat.jpg?width=800&height=800&q=75&func=crop",
1212
"https://demo.cloudimg.io/v7/sample.li/img.jpg?width=300&height=300&force_format=webp&func=cover",
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"requests": [
3-
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee",
4-
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee.jpg?withoutEnlargement=true&width=1024&height=256&fit=cover",
5-
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?width=256&format=webp",
6-
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?withoutEnlargement=true&transforms=%5B%5B%22blur%22%2C4%5D%2C%5B%22negate%22%5D%5D&width=256&format=webp",
3+
"https://example.directus.app/assets/39ff62fd-902e-458c-808f-702460c51309",
4+
"https://example.directus.app/assets/39ff62fd-902e-458c-808f-702460c51309.jpg?withoutEnlargement=true&width=1024&height=256&fit=cover",
5+
"https://example.directus.app/assets/39ff62fd-902e-458c-808f-702460c51309?width=256&format=webp",
6+
"https://example.directus.app/assets/39ff62fd-902e-458c-808f-702460c51309?withoutEnlargement=true&transforms=%5B%5B%22blur%22%2C4%5D%2C%5B%22negate%22%5D%5D&width=256&format=webp",
77
],
88
"sources": [
9-
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee",
10-
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee.jpg?withoutEnlargement=true&width=1024&height=256&fit=cover",
11-
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?width=256&format=webp",
12-
"http://localhost:8055/assets/ad514db1-eb90-4523-8183-46781437e7ee?withoutEnlargement=true&transforms=%5B%5B%22blur%22%2C4%5D%2C%5B%22negate%22%5D%5D&width=256&format=webp",
9+
"https://example.directus.app/assets/39ff62fd-902e-458c-808f-702460c51309",
10+
"https://example.directus.app/assets/39ff62fd-902e-458c-808f-702460c51309.jpg?withoutEnlargement=true&width=1024&height=256&fit=cover",
11+
"https://example.directus.app/assets/39ff62fd-902e-458c-808f-702460c51309?width=256&format=webp",
12+
"https://example.directus.app/assets/39ff62fd-902e-458c-808f-702460c51309?withoutEnlargement=true&transforms=%5B%5B%22blur%22%2C4%5D%2C%5B%22negate%22%5D%5D&width=256&format=webp",
1313
],
1414
}
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"requests": [
3-
"https://www.fastly.io/image.jpg",
4-
"https://www.fastly.io/plant.jpeg",
3+
"https://www.fastly.io/image.gif?v=123&height=100",
4+
"https://www.fastly.io/image.jpg?width=400",
5+
"https://www.fastly.io/image.png?height=250",
56
],
67
"sources": [
7-
"https://www.fastly.io/image.jpg",
8-
"https://www.fastly.io/plant.jpeg",
8+
"https://www.fastly.io/image.jpg?width=400",
9+
"https://www.fastly.io/image.png?height=250",
10+
"https://www.fastly.io/image.gif?v=123&height=100",
911
],
1012
}

0 commit comments

Comments
 (0)