From afb3cc283074103e1137e79589d15390c825ecf1 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 4 Feb 2019 22:16:03 +0100 Subject: [PATCH 1/1] Add cover_thumb to tests. --- src/api/tests/res/responses/books.json | 2 +- src/api/tests/res/responses/filter-books.json | 2 +- src/catalogue/fixtures/test-books.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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" -- 2.20.1