From b685fb4deffe4c0699c28cdea170ed51a15622bc Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Fri, 10 Jan 2020 09:51:54 +0100 Subject: [PATCH] test: working test for html_output --- test/html_output.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/html_output.js b/test/html_output.js index 4829382..5afdae0 100644 --- a/test/html_output.js +++ b/test/html_output.js @@ -70,9 +70,11 @@ describe('Config', function(){ const scrape_job = { search_engine: 'google', + /* TODO refactor start_url google_settings: { start_url: 'http://localhost:' + httpPort }, + */ keywords: ['test keyword'], }; @@ -82,6 +84,9 @@ describe('Config', function(){ html_output: true, //clean_html_output: false, //clean_data_images: false, + // TODO refactor start_url so we can use-it instead of depending of the proxy for this test + proxies: ['http://localhost:' + proxyPort], + use_proxies_only: true, }); await scraper.start(); const { results } = await scraper.scrape(scrape_job);