From: Radek Czajka Date: Mon, 4 Feb 2019 21:16:03 +0000 (+0100) Subject: Add cover_thumb to tests. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/afb3cc283074103e1137e79589d15390c825ecf1?ds=sidebyside;hp=--cc Add cover_thumb to tests. --- afb3cc283074103e1137e79589d15390c825ecf1 diff --git a/src/api/tests/res/responses/books.json b/src/api/tests/res/responses/books.json index f83e74e42..80414b5e1 100644 --- a/src/api/tests/res/responses/books.json +++ b/src/api/tests/res/responses/books.json @@ -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" } ] diff --git a/src/api/tests/res/responses/filter-books.json b/src/api/tests/res/responses/filter-books.json index b56ffb148..60ff4d3a7 100644 --- a/src/api/tests/res/responses/filter-books.json +++ b/src/api/tests/res/responses/filter-books.json @@ -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" } ] diff --git a/src/catalogue/fixtures/test-books.yaml b/src/catalogue/fixtures/test-books.yaml index ad7636863..4c607758a 100644 --- a/src/catalogue/fixtures/test-books.yaml +++ b/src/catalogue/fixtures/test-books.yaml @@ -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"