From 31d065cc50e17a9abf263ed8c606cb272cd4933d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Maldonado?= Date: Tue, 27 Nov 2018 18:57:02 +0100 Subject: Add search by original publication date --- server/tests/api/check-params/search.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/tests/api/check-params/search.ts') diff --git a/server/tests/api/check-params/search.ts b/server/tests/api/check-params/search.ts index aa81965f3..7b7e07784 100644 --- a/server/tests/api/check-params/search.ts +++ b/server/tests/api/check-params/search.ts @@ -113,6 +113,12 @@ describe('Test videos API validator', function () { const customQuery2 = immutableAssign(query, { endDate: 'hello' }) await makeGetRequest({ url: server.url, path, query: customQuery2, statusCodeExpected: 400 }) + + const customQuery3 = immutableAssign(query, { originallyPublishedStartDate: 'hello' }) + await makeGetRequest({ url: server.url, path, query: customQuery3, statusCodeExpected: 400 }) + + const customQuery4 = immutableAssign(query, { originallyPublishedEndDate: 'hello' }) + await makeGetRequest({ url: server.url, path, query: customQuery4, statusCodeExpected: 400 }) }) }) -- cgit v1.2.3