Add cover_thumb to tests.
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 4 Feb 2019 21:16:03 +0000 (22:16 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 4 Feb 2019 21:16:03 +0000 (22:16 +0100)
src/api/tests/res/responses/books.json
src/api/tests/res/responses/filter-books.json
src/catalogue/fixtures/test-books.yaml

index f83e74e..80414b5 100644 (file)
@@ -45,6 +45,6 @@
         "genre": "Sonet", 
         "simple_thumb": "https://example.com/media/cover_api_thumb/parent.jpg", 
         "slug": "parent", 
-        "cover_thumb": "https://example.com/media/cover/parent.jpg-139x193"
+        "cover_thumb": "cover_thumb/parent.jpg"
     }
 ]
index b56ffb1..60ff4d3 100644 (file)
@@ -48,6 +48,6 @@
         "genre": "Sonet", 
         "simple_thumb": "https://example.com/media/cover_api_thumb/parent.jpg", 
         "slug": "parent", 
-        "cover_thumb": "https://example.com/media/cover/parent.jpg-139x193"
+        "cover_thumb": "cover_thumb/parent.jpg"
     }
 ]
index ad76368..4c60775 100644 (file)
@@ -12,6 +12,7 @@
     cover: cover/parent.jpg
     cover_api_thumb: cover_api_thumb/parent.jpg
     simple_cover: simple_cover/parent.jpg
+    cover_thumb: cover_thumb/parent.jpg
     recommended: true
     created_at: "1970-01-03 0:0Z"
     changed_at: "1970-01-03 0:0Z"