Skip to content

Commit

Permalink
NYTimes: Update tests
Browse files Browse the repository at this point in the history
This adds snapshots back to tests and updates a few fields, but I left
out a few changes where tags are now being saved as all-caps, which we
should fix.
  • Loading branch information
dstillman committed Jan 22, 2021
1 parent 1b6061a commit f70e346
Showing 1 changed file with 69 additions and 14 deletions.
83 changes: 69 additions & 14 deletions NYTimes.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ var testCases = [
"publicationTitle": "The New York Times",
"section": "Archives",
"url": "https://www.nytimes.com/1912/03/05/archives/two-money-inquiries-hearings-of-trust-charges-and-aldrich-plan-at.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Banks and Banking"
Expand All @@ -244,23 +249,28 @@ var testCases = [
"items": [
{
"itemType": "newspaperArticle",
"title": "Harvard Finds Marc Hauser Guilty of Scientific Misconduct",
"title": "Harvard Finds Scientist Guilty of Misconduct",
"creators": [
{
"firstName": "Nicholas",
"lastName": "Wade",
"creatorType": "author"
}
],
"date": "2010-08-20",
"date": "2010-08-21",
"ISSN": "0362-4331",
"abstractNote": "The university has found Marc Hauser “solely responsible” for eight instances of scientific misconduct.",
"language": "en-US",
"libraryCatalog": "NYTimes.com",
"publicationTitle": "The New York Times",
"section": "Education",
"url": "https://www.nytimes.com/2010/08/21/education/21harvard.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Ethics"
Expand Down Expand Up @@ -308,7 +318,12 @@ var testCases = [
"blogTitle": "Opinionator",
"language": "en-US",
"url": "https://opinionator.blogs.nytimes.com/2013/06/19/our-broken-social-contract/",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Economic Conditions and Trends"
Expand Down Expand Up @@ -356,7 +371,12 @@ var testCases = [
"publicationTitle": "The New York Times",
"section": "New York",
"url": "https://www.nytimes.com/2015/05/10/nyregion/manicurists-in-new-york-area-are-underpaid-and-unprotected.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Beauty Salons"
Expand Down Expand Up @@ -414,7 +434,12 @@ var testCases = [
"publicationTitle": "The New York Times",
"section": "U.S.",
"url": "https://www.nytimes.com/2017/05/24/us/politics/russia-trump-manafort-flynn.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Cyberwarfare and Defense"
Expand Down Expand Up @@ -462,7 +487,12 @@ var testCases = [
"publicationTitle": "The New York Times",
"section": "Archives",
"url": "https://www.nytimes.com/1966/09/12/archives/draft-deferment-scored-at-rutgers.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Colleges and Universities"
Expand Down Expand Up @@ -507,7 +537,12 @@ var testCases = [
"publicationTitle": "The New York Times",
"section": "Archives",
"url": "https://www.nytimes.com/1970/11/12/archives/ideological-labels-changing-along-with-the-labelmakers-ideological.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Bell, Daniel"
Expand Down Expand Up @@ -570,7 +605,12 @@ var testCases = [
"publicationTitle": "The New York Times",
"section": "Business",
"url": "https://www.nytimes.com/2017/07/03/business/oreo-new-flavors.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Contests and Prizes"
Expand Down Expand Up @@ -607,15 +647,20 @@ var testCases = [
"creatorType": "author"
}
],
"date": "2018-01-11",
"date": "2018-01-12",
"ISSN": "0362-4331",
"abstractNote": "Steven Pinker is a liberal, Jewish professor. But social media convinced people that he’s a darling of the alt-right.",
"language": "en-US",
"libraryCatalog": "NYTimes.com",
"publicationTitle": "The New York Times",
"section": "Opinion",
"url": "https://www.nytimes.com/2018/01/11/opinion/social-media-dumber-steven-pinker.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Anti-Semitism"
Expand Down Expand Up @@ -677,7 +722,12 @@ var testCases = [
"section": "U.S.",
"shortTitle": "After Weinstein",
"url": "https://www.nytimes.com/interactive/2017/11/10/us/men-accused-sexual-misconduct-weinstein.html, https://www.nytimes.com/interactive/2017/11/10/us/men-accused-sexual-misconduct-weinstein.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "#MeToo Movement"
Expand Down Expand Up @@ -770,7 +820,12 @@ var testCases = [
"publicationTitle": "The New York Times",
"section": "World",
"url": "https://www.nytimes.com/2017/05/22/world/europe/greece-athens-anarchy-austerity.html",
"attachments": [],
"attachments": [
{
"title": "Snapshot",
"mimeType": "text/html"
}
],
"tags": [
{
"tag": "Coalition of the Radical Left (Greece)"
Expand Down

0 comments on commit f70e346

Please sign in to comment.