Skip to content

Commit c5f73bb

Browse files
committed
Add metascraper-lang tests
1 parent 24d5a19 commit c5f73bb

File tree

6 files changed

+3172
-1
lines changed

6 files changed

+3172
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
exports['html lang property 1'] = {
2+
"author": "Jakub Majmurek",
3+
"date": "2018-01-01T12:00:00.000Z",
4+
"description": "Wysyp filmów o Churchillu w pobrexitowej Brytanii, wydaje się czymś zrozumiałym. Uosabia on ostatni moment prawdziwej wielkości Zjednoczonego Królestwa – wspomnienie tej historycznej chwili pozwala oswoić traumy i lęki",
5+
"image": "http://www.dwutygodnik.com/public/media/article/image_full/7615.png",
6+
"lang": "pl",
7+
"logo": "http://www.dwutygodnik.com/public/frontend/image_v4/favicon.ico",
8+
"publisher": "Film | Dwutygodnik | Dwutygodnik",
9+
"title": "Churchill, bohater naszych czasów / Film / dwutygodnik.com",
10+
"url": "http://www.dwutygodnik.com/artykul/7615-churchill-bohater-naszych-czasow.html"
11+
}
12+

packages/metascraper-lang/package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"lodash": "~4.17.4"
2020
},
2121
"devDependencies": {
22+
"metascraper": "latest",
23+
"mocha": "latest",
24+
"nyc": "latest",
25+
"should": "latest",
26+
"snap-shot": "latest",
2227
"standard": "latest"
2328
},
2429
"engines": {
@@ -30,5 +35,10 @@
3035
"scripts": {
3136
"test": "exit 0"
3237
},
33-
"license": "MIT"
38+
"license": "MIT",
39+
"standard": {
40+
"env": [
41+
"mocha"
42+
]
43+
}
3444
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"rules": [
3+
"metascraper-soundcloud",
4+
"metascraper-author",
5+
"metascraper-date",
6+
"metascraper-description",
7+
"metascraper-image",
8+
"metascraper-lang",
9+
"metascraper-logo",
10+
"metascraper-publisher",
11+
"metascraper-title",
12+
"metascraper-url"
13+
]
14+
}

0 commit comments

Comments
 (0)