diff --git a/tests/configs/data/feed_test_newtimes.xml b/tests/configs/data/feed_test_newtimes.xml new file mode 100644 index 00000000..96b7dda6 --- /dev/null +++ b/tests/configs/data/feed_test_newtimes.xml @@ -0,0 +1,534 @@ + + + + NYT > Home Page + http://www.nytimes.com/pages/index.html?partner=rss&emc=rss + + + en-us + Copyright 2017 The New York Times Company + Tue, 21 Feb 2017 18:16:14 GMT + + NYT > Home Page + https://static01.nyt.com/images/misc/NYT_logo_rss_250x40.png + http://www.nytimes.com/pages/index.html?partner=rss&emc=rss + + + New Trump Deportation Rules Allow Far More Expulsions + http://www.nytimes.com/2017/02/21/us/politics/dhs-immigration-trump.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/us/politics/dhs-immigration-trump.html + + + Mexicans deported from the U.S. walked to a repatriation center in Tijuana in June 2016. + Guillermo Arias/Agence France-Presse — Getty Images + The rules authorize expelling undocumented immigrants who have committed even minor offenses, and they make it easier to deport people immediately. + RON NIXON and MICHAEL D. SHEAR + Tue, 21 Feb 2017 16:21:01 GMT + Deportation + Homeland Security Department + Immigration and Customs Enforcement (US) + Customs and Border Protection (US) + United States Politics and Government + + + Trump Speaks Out Against Anti-Semitism + http://www.nytimes.com/2017/02/21/us/politics/trump-speaks-out-against-anti-semitism.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/us/politics/trump-speaks-out-against-anti-semitism.html + + He made the comments after drawing criticism in recent days for failing to condemn the rise in anti-Jewish threats and actions. + JULIE HIRSCHFELD DAVIS + Tue, 21 Feb 2017 15:29:00 GMT + United States Politics and Government + National Museum of African American History and Culture + Anti-Semitism + Washington (DC) + + + Lawyers Take On Trump’s Travel Ban + http://www.nytimes.com/video/us/politics/100000004914792/trump-immigration-lawyer.html?partner=rss&emc=rss + http://www.nytimes.com/video/us/politics/100000004914792/trump-immigration-lawyer.html + The judiciary is the new front line: A group of lawyers scramble to get their clients into the country, while preparing a legal challenge to Trump’s immigration ban. + + Tue, 21 Feb 2017 06:57:04 GMT + Immigration and Emigration + Trump, Donald J + Executive Orders and Memorandums + Refugees and Displaced Persons + + + Riots Break Out in Stockholm Suburb, Drawing Attention to Trump’s Remarks + http://www.nytimes.com/2017/02/21/world/europe/stockholm-sweden-riots-trump.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/world/europe/stockholm-sweden-riots-trump.html + + + Burned cars on Tuesday in Rinkeby, a northwestern Stockholm suburb predominantly inhabited by immigrants. About 20 to 30 masked men threw stones and other objects at police officers in Rinkeby after the police arrested a man on suspicion of dealing drugs. + TT News Agency, via Reuters + The clash between the police and residents came two days after President Trump’s provocative claims about migration and crime in the country. + CHRISTINA ANDERSON + Tue, 21 Feb 2017 18:01:23 GMT + Demonstrations, Protests and Riots + Stockholm (Sweden) + Trump, Donald J + + + White House Memo: From an Anchor’s Lips to Trump’s Ears to Sweden’s Disbelief + http://www.nytimes.com/2017/02/20/world/europe/trump-pursues-his-attack-on-sweden-with-scant-evidence.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/world/europe/trump-pursues-his-attack-on-sweden-with-scant-evidence.html + + + A group of refugees walking on a highway in Denmark toward Sweden in 2015. Statistics in Sweden found no appreciable increase in crimes from 2015, when the country processed a record 163,000 asylum applications, to 2016. + Mauricio Lima for The New York Times + A diplomatic dispute with Sweden illustrates the unusual approach the president takes to foreign policy, as well as the influence that television can have on his thinking. + PETER BAKER and SEWELL CHAN + Tue, 21 Feb 2017 14:35:13 GMT + Immigration and Emigration + Trump, Donald J + Sweden + United States International Relations + United States Politics and Government + Fox News Channel + Carlson, Tucker + Horowitz, Ami + + + Europe Combats a New Foe of Political Stability: Fake News + http://www.nytimes.com/2017/02/20/world/europe/europe-combats-a-new-foe-of-political-stability-fake-news.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/world/europe/europe-combats-a-new-foe-of-political-stability-fake-news.html + + + Emmanuel Macron, center, a French presidential candidate, in southern France on Friday. The head of his party said Mr. Macron had been targeted by Russian news channels. + Franck Pennant/Agence France-Presse — Getty Images + The rise of sophisticated hacks and a torrent of fake news coincide with angry populist movements across the Continent, and officials are nervous. + MARK SCOTT and MELISSA EDDY + Mon, 20 Feb 2017 22:10:11 GMT + Rumors and Misinformation + News and News Media + European Union + Europe + + + Town Hall Briefing: Congressional Town Hall: Of Tums, Death Panels and ‘Shut Your Hole’ + http://www.nytimes.com/2017/02/21/us/politics/town-hall-protests-obamacare.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/us/politics/town-hall-protests-obamacare.html + + + Senator Charles E. Grassley at a town hall meeting in Iowa Falls, Iowa, on Tuesday. He addressed a standing-room-only crowd. + Scott Morgan for The New York Times + Several Republicans will be hearing from constituents on Tuesday, and reporters for The New York Times will be there to gauge the sentiment. + THOMAS KAPLAN, TRIP GABRIEL and LIZETTE ALVAREZ + Tue, 21 Feb 2017 18:10:24 GMT + Trump, Donald J + United States Politics and Government + Patient Protection and Affordable Care Act (2010) + Demonstrations, Protests and Riots + Blackburn, Marsha + Grassley, Charles E + Ross, Dennis A + Cassidy, Bill (1957- ) + + + For-Profit Schools, an Obama Target, See New Day Under Trump + http://www.nytimes.com/2017/02/20/business/for-profit-education-trump-devos.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/business/for-profit-education-trump-devos.html + + + Donald J. Trump at the announcement of the establishment of Trump University in 2005. As president-elect, he paid $25 million to settle three lawsuits against the now-defunct institution. + Bebeto Matthews/Associated Press + The Education Department, whose scrutiny has led hundreds of campuses to close, is now led by Betsy DeVos, who has investments in the industry. + PATRICIA COHEN + Tue, 21 Feb 2017 00:03:48 GMT + For-Profit Schools + Colleges and Universities + United States Politics and Government + Regulation and Deregulation of Industry + DeVos, Elizabeth (1958- ) + Trump, Donald J + + + Protesters Ready for Trump’s First Visit to New York as President + http://www.nytimes.com/2017/02/21/nyregion/protesters-ready-for-trumps-first-visit-to-new-york-as-president.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/nyregion/protesters-ready-for-trumps-first-visit-to-new-york-as-president.html + + + Congregation Beth Elohim in Brooklyn was filled on Feb. 6 for an evening of strategizing against President Trump. + Demetrius Freeman for The New York Times + The president has not set foot in the city since his inauguration, puzzling and emboldening some protesters in his hometown. + SARAH MASLIN NIR + Tue, 21 Feb 2017 14:12:26 GMT + Executive Orders and Memorandums + Immigration and Emigration + United States Politics and Government + Demonstrations, Protests and Riots + Trump Tower (Manhattan, NY) + Trump, Donald J + Fifth Avenue (Manhattan, NY) + New York City + + + Milo Yiannopoulos’s Pedophilia Comments Cost Him CPAC Role and Book Deal + http://www.nytimes.com/2017/02/20/us/politics/cpac-milo-yiannopoulos.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/us/politics/cpac-milo-yiannopoulos.html + + + Milo Yiannopoulos last month in Boulder, Colo. The Conservative Political Action Conference rescinded its invitation for him to speak to the group after his comments about pedophilia. + Jeremy Papasso/Daily Camera, via Associated Press + The publication of a video in which the contentious Breitbart News editor condoned sexual relations with boys seemed to be more than conference organizers could tolerate. + JEREMY W. PETERS, ALEXANDRA ALTER and MICHAEL M. GRYNBAUM + Tue, 21 Feb 2017 01:47:20 GMT + Yiannopoulos, Milo + Sex Crimes + Child Abuse and Neglect + United States Politics and Government + Conservative Political Action Conference + Simon & Schuster Inc + Dangerous (Book) + + + Unease Spreads in Atlanta as a City Contracting Scandal Brews + http://www.nytimes.com/2017/02/21/us/unease-spreads-in-atlanta-as-a-city-contracting-scandal-brews.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/us/unease-spreads-in-atlanta-as-a-city-contracting-scandal-brews.html + + + Mayor Kasim Reed of Atlanta delivering his State of the City address this month. An investigation into charges of bribery involving city contracts has prompted the mayor to defend his legacy. + Branden Camp/Atlanta Journal-Constitution, via Associated Press + A brick thrown through a window, dead rodents left on steps and a threat to a contractor have become symbols of a federal inquiry into bribery charges. + RICHARD FAUSSET + Tue, 21 Feb 2017 10:00:17 GMT + Politics and Government + Government Contracts and Procurement + Bribery and Kickbacks + Atlanta (Ga) + Kasim Reed + Elvin R. Mitchell Jr. + + + A Surprising Salve for New York’s Beleaguered Cities: Refugees + http://www.nytimes.com/2017/02/20/nyregion/a-surprising-salve-for-new-yorks-beleaguered-cities-refugees.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/nyregion/a-surprising-salve-for-new-yorks-beleaguered-cities-refugees.html + + + In early February a man wearing a keffiyeh walked past a mural that recalls a less diverse past in Buffalo. The self-described “City of Good Neighbors” has received more than 10,000 refugees over the last decade. + Nathaniel Brooks for The New York Times + Communities across upstate New York say an influx of refugees has helped alleviate decades-long struggles with dwindling populations and opportunities. + JESSE McKINLEY + Mon, 20 Feb 2017 20:54:01 GMT + Refugees and Displaced Persons + Immigration and Emigration + Trump, Donald J + Buffalo (NY) + United States Politics and Government + + + Firsthand Account: The Assassination of Malcolm X + http://www.nytimes.com/video/us/100000004817791/malcolm-x-death-new-york-assassination-360.html?partner=rss&emc=rss + http://www.nytimes.com/video/us/100000004817791/malcolm-x-death-new-york-assassination-360.html + The civil rights leader Malcolm X was killed Feb. 21, 1965, at a rally in New York City. Hear from a witness and visit the site of the assassination — in the past, present and in 360 video. + + Tue, 21 Feb 2017 10:00:29 GMT + Civil Rights Movement (1954-68) + Assassinations and Attempted Assassinations + Malcolm X + + + California Today: California Today: Lawmakers With Little in Common, Except a Name + http://www.nytimes.com/2017/02/21/us/california-today-kevin-mccarthy-kevin-mccarty.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/us/california-today-kevin-mccarthy-kevin-mccarty.html + + + Representative Kevin McCarthy of California, the majority leader, at his office in the U.S. Capitol. + Al Drago/The New York Times + Tuesday: Name confusion vexes a California representative and assemblyman, a Whittier police officer is killed, and clam digging in Humboldt Bay. + MIKE McPHATE + Tue, 21 Feb 2017 13:12:08 GMT + California Today + California + + + Your Daily Mini Crossword + http://www.nytimes.com/crosswords/game/mini?partner=rss&emc=rss + http://www.nytimes.com/crosswords/game/mini + + Solve a bite-size crossword in just a few minutes. + + Thu, 25 Feb 2016 08:18:20 GMT + + + Travel Tips: How to Have a Better Flight + http://www.nytimes.com/2016/12/29/travel/how-to-have-a-better-flight.html?partner=rss&emc=rss + http://www.nytimes.com/2016/12/29/travel/how-to-have-a-better-flight.html + + + + Lars Leetaru + A longtime flight attendant says that politeness helps improve a trip, as does bringing your own food for the ride. + SHIVANI VORA + Thu, 29 Dec 2016 11:00:03 GMT + Airlines and Airplanes + Travel and Vacations + Flight Attendants + + + Trying to Stanch Trinidad’s Flow of Young Recruits to ISIS + http://www.nytimes.com/2017/02/21/world/americas/trying-to-stanch-trinidads-flow-of-young-recruits-to-isis.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/world/americas/trying-to-stanch-trinidads-flow-of-young-recruits-to-isis.html + + + Yasin Abu Bakr, second from right, speaking with other Muslims at his mosque in Port of Spain, Trinidad and Tobago. + Federico Rios Escobar for The New York Times + Officials in Trinidad and Tobago are scrambling to close a pipeline that has sent a steady stream of Muslims to Syria to take up arms for the Islamic State. + FRANCES ROBLES + Tue, 21 Feb 2017 10:00:16 GMT + Terrorism + Politics and Government + Muslims and Islam + United States International Relations + Syria + Trinidad and Tobago + + + Goalie Eats Pie and Loses His Job, While Bettors’ Wallets Fatten + http://www.nytimes.com/2017/02/21/sports/soccer/wayne-shaw-sutton-soccer-pie.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/sports/soccer/wayne-shaw-sutton-soccer-pie.html + + + Sutton’s backup goalkeeper, Wayne Shaw, eats a pie during the match against Arsenal on Monday. + Andrew Couldridge/Reuters + The backup goalkeeper for Sutton, Wayne Shaw, said he knew about a bet on whether he’d have a pie during the match and had eaten because of it. + VICTOR MATHER + Tue, 21 Feb 2017 17:24:00 GMT + Soccer + Gambling + Sutton (Soccer Team) + + + Out There: Cosmos Controversy: The Universe Is Expanding, but How Fast? + http://www.nytimes.com/2017/02/20/science/hubble-constant-universe-expanding-speed.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/science/hubble-constant-universe-expanding-speed.html + + + A Hubble Space Telescope image of a group of interacting galaxies called Arp 273. + NASA + A small discrepancy in the value of a long-sought number has fostered a debate about just how well we know the cosmos. + DENNIS OVERBYE + Mon, 20 Feb 2017 20:47:03 GMT + Space and Astronomy + Hubble Constant + Dark Energy (Astronomy) + Dark Matter (Astronomy) + Riess, Adam Guy + Freedman, Wendy L + + + Afghanistan Police Surround Vice President’s House + http://www.nytimes.com/2017/02/21/world/asia/abdul-rashid-dostum-afghanistan.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/world/asia/abdul-rashid-dostum-afghanistan.html + + + Abdul Rashid Dostum, an Afghan vice president, in 2014. On Tuesday, over 100 police officers and soldiers surrounded his Kabul compound in an apparent effort to arrest nine of of his aides. + Shah Marai/Agence France-Presse — Getty Images + Soldiers and police officers appeared to be trying to arrest nine aides to Vice President Abdul Rashid Dostum accused of kidnapping a political rival. + ROD NORDLAND and JAWAD SUKHANYAR + Tue, 21 Feb 2017 15:02:32 GMT + Dostum, Abdul Rashid + Afghanistan + Kidnapping and Hostages + Sex Crimes + Politics and Government + Ishchi, Ahmad + + + Bodies of 74 Migrants Wash Up on Libyan Coast + http://www.nytimes.com/2017/02/21/world/middleeast/migrants-libya-beach.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/world/middleeast/migrants-libya-beach.html + + + Red Crescent workers collected the bodies of migrants on Monday from a beach near the town of Zawiya, Libya. + Libyan Red Crescent + The victims were believed to have come from a shipwrecked boat that was found along the shore, an ominous sign before the high season for crossings to Europe. + DECLAN WALSH + Tue, 21 Feb 2017 12:34:42 GMT + Refugees and Displaced Persons + Middle East and Africa Migrant Crisis + Deaths (Fatalities) + Illegal Immigration + Europe + Libya + Mediterranean Sea + + + Elor Azaria, Israeli Soldier Who Killed Wounded Assailant, Gets 18 Months in Prison + http://www.nytimes.com/2017/02/21/world/middleeast/elor-azaria-israel-sentence.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/world/middleeast/elor-azaria-israel-sentence.html + + + Sgt. Elor Azaria, center, with his mother in a military courtroom in Tel Aviv on Tuesday before he received an 18-month sentence for manslaughter. + Pool photo by Jim Hollander + The sergeant shot an incapacitated Palestinian lying on his back, a case that has divided Israelis and prompted calls for a pardon. + IAN FISHER + Tue, 21 Feb 2017 15:46:07 GMT + Defense and Military Forces + Azaria, Elor + Israel + Palestinians + Heller, Maya + + + The Interpreter + http://www.nytimes.com/newsletters/the-interpreter?partner=rss&emc=rss + http://www.nytimes.com/newsletters/the-interpreter + + The Interpreter brings sharp insight and context to the major news stories of the week. Sign up to get it by email. + + Fri, 03 Feb 2017 22:38:47 GMT + + + Vatican and Rome’s Jewish Museum Team Up for Menorah Exhibit + http://www.nytimes.com/2017/02/20/world/europe/vatican-rome-menorah-exhibit-jewish-museum.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/world/europe/vatican-rome-menorah-exhibit-jewish-museum.html + + + A bas-relief showing a menorah was displayed at a news conference on Monday announcing a joint exhibition by the Vatican Museums and Rome’s Jewish Museum. + Alessandra Tarantino/Associated Press + The collaboration, centered on a famous candelabrum that has been missing for centuries, is being hailed as “a historic event.” + ELISABETTA POVOLEDO + Tue, 21 Feb 2017 00:12:55 GMT + Jews and Judaism + Arts and Antiquities Looting + Roman Catholic Church + Vatican Museums + Rome (Italy) + Vatican City + + + The Businessman Behind Cool British Fashion Brands + http://www.nytimes.com/2017/02/21/fashion/london-fashion-week-alexa-chung-oakley-capital.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/fashion/london-fashion-week-alexa-chung-oakley-capital.html + + Peter Dubens, the co-founder and managing partner of Oakley Capital Private Equity, is the investor behind Alexa Chung’s fashion label. + Glenn Copus/Evening Standard, via REX/Shutterstock + Peter Dubens, co-founder of Oakley Capital, has financed both Alexa Chung and Bella Freud. + LAUREN INDVIK + Tue, 21 Feb 2017 05:01:21 GMT + Fashion and Apparel + Dubens, Peter + Chung, Alexa + Freud, Bella + + + A.S. Monaco: From Billionaire’s Plaything to Soccer Prodigies’ Hub + http://www.nytimes.com/2017/02/21/sports/soccer/as-monaco-vadim-vasilyev-.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/sports/soccer/as-monaco-vadim-vasilyev-.html + + + Vadim Vasilyev, the vice president of A.S. Monaco, remembers the “tough” night in 2015 when he explained to fans the club’s shift away from signing star players. + France Keyser for The New York Times + Financial fair-play rules forced a change in club strategy, one that has had some unexpectedly happy results. + RORY SMITH + Tue, 21 Feb 2017 05:01:22 GMT + Soccer + A.S. Monaco + UEFA Champions League (Soccer) + Rybolovlev, Dmitry Evgenevich + Rodriguez, James (1991- ) + Mendes, Jorge (1966- ) + Martial, Anthony (1995- ) + + + Sinosphere: Scammers in China Fake Road Injuries, but Cameras Capture the Truth + http://www.nytimes.com/2017/02/21/world/asia/china-traffic-scam-fraud.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/world/asia/china-traffic-scam-fraud.html + + Fraudsters are throwing themselves in front of cars or buses to extort money from motorists, but the results are often unconvincing. + DIDI KIRSTEN TATLOW + Tue, 21 Feb 2017 11:58:34 GMT + China + scams + + + Eleven Madison Park Plans a Makeover and a Summer Pop-Up + http://www.nytimes.com/2017/02/21/dining/eleven-madison-park-renovation-hamptons.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/21/dining/eleven-madison-park-renovation-hamptons.html + + + Like many New Yorkers, the staff and operations of Eleven Madison Park will spend this summer in the Hamptons. They will take over the restaurant Moby’s, opening it in late June as EMP Summer House. + Daniel Gonzalez for The New York Times + The top-rated Manhattan restaurant will close for three months of renovation and open a more casual version in the Hamptons. + FLORENCE FABRICANT + Tue, 21 Feb 2017 11:00:13 GMT + Restaurants + Relocation of Business + Eleven Madison Park (Manhattan, NY, Restaurant) + Guidara, Will + Humm, Daniel + Cloepfil, Brad + East Hampton (NY) + Manhattan (NYC) + + + Dick Bruna, Author of Miffy Books, Is Dead at 89 + http://www.nytimes.com/2017/02/20/books/dick-bruna-dead-miffy-creator.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/books/dick-bruna-dead-miffy-creator.html + + + Dick Bruna in 2005 at the opening of an exhibition devoted to his Miffy books in The Hague. + Inge Van Mill/Agence France-Presse — Getty Images + The Dutch writer and illustrator was known for children’s books depicting a sparely drawn round white rabbit who gained a worldwide following. + NINA SIEGAL + Tue, 21 Feb 2017 00:57:49 GMT + Bruna, Dick (1927-2017) + Writing and Writers + Books and Literature + Deaths (Obituaries) + Miffy + + + Shared: A Balm When You’re Expecting: Sometimes Pot Does the Trick + http://www.nytimes.com/2017/02/20/health/marijuana-pregnancy-mothers.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/health/marijuana-pregnancy-mothers.html + + + Jane, who used pot to quell her nausea during her third pregnancy, with her daughter in New York + Nancie Battaglia for The New York Times + Five women describe why they used marijuana while pregnant, and how they assessed the risks and benefits before making that choice. + CATHERINE SAINT LOUIS + Mon, 20 Feb 2017 20:35:02 GMT + Marijuana + Pregnancy and Childbirth + Women and Girls + Morning Sickness + + + The Fix: The Convertible, Tiny Apartment + http://www.nytimes.com/2017/02/19/realestate/the-convertible-tiny-apartment.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/19/realestate/the-convertible-tiny-apartment.html + + + A Murphy bed and flanking closets disappear into the living room walls when not in use. + Linda Jaquez for The New York Times + A 400-square-foot studio is remade into a space that can be constantly transformed. + MICHELLE HIGGINS + Sun, 19 Feb 2017 10:05:01 GMT + Interior Design and Furnishings + Real Estate and Housing (Residential) + Architecture + Restoration and Renovation + + + Personal Health: The Worst That Could Happen? Going Blind, People Say + http://www.nytimes.com/2017/02/20/well/the-worst-that-could-happen-going-blind-people-say.html?partner=rss&emc=rss + http://www.nytimes.com/2017/02/20/well/the-worst-that-could-happen-going-blind-people-say.html + + + + Paul Rogers + When eyesight fails, some people become socially disengaged, leading to isolation and loneliness. + JANE E. BRODY + Mon, 20 Feb 2017 11:00:23 GMT + Eyes and Eyesight + Blindness + Cataracts + Macular Degeneration + Glaucoma + + + diff --git a/tests/configs/modules/newsfeed/default.js b/tests/configs/modules/newsfeed/default.js new file mode 100644 index 00000000..071f39a1 --- /dev/null +++ b/tests/configs/modules/newsfeed/default.js @@ -0,0 +1,38 @@ +/* Magic Mirror Test config newsfeed module + * + * By Rodrigo Ramírez Norambuena https://rodrigoramirez.com + * MIT Licensed. + */ + +var config = { + port: 8080, + ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], + + language: "en", + timeFormat: 12, + units: "metric", + electronOptions: { + webPreferences: { + nodeIntegration: true, + }, + }, + + modules: [ + { + + module: "newsfeed", + position: "bottom_bar", + config: { + feeds: [ + { + title: "New York Times", + url: "http://localhost:8080/tests/configs/data/feed_test_newtimes.xml" + }, + ] + } + } + ] +}; + +/*************** DO NOT EDIT THE LINE BELOW ***************/ +if (typeof module !== "undefined") {module.exports = config;} diff --git a/tests/e2e/modules/newsfeed_spec.js b/tests/e2e/modules/newsfeed_spec.js new file mode 100644 index 00000000..4b0b4ea8 --- /dev/null +++ b/tests/e2e/modules/newsfeed_spec.js @@ -0,0 +1,31 @@ +const globalSetup = require("../global-setup"); +const app = globalSetup.app; +const chai = require("chai"); +const expect = chai.expect; + +describe("Newsfeed module", function () { + + this.timeout(20000); + + beforeEach(function (done) { + app.start().then(function() { done(); } ); + }); + + afterEach(function (done) { + app.stop().then(function() { done(); }); + }); + + describe("Default configuration", function() { + + before(function() { + // Set config sample for use in test + process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js"; + }); + + it("Check here", function () { + return app.client.waitUntilTextExists(".newsfeed .small", "New York Times, in day:", 10000); + }); + + }); + +});