Fix: Fix fails for some Id's (#4)

fixes #3 

* Add tests, and test runner

* Add failing test

* Add flowconfig

* Fix #3: Fails for `en` and videoId `JueUvj6X3DA`
This commit is contained in:
syzer
2018-08-31 15:25:45 +02:00
committed by Haroen Viaene
parent e344fdd5f6
commit de7581ac7b
5 changed files with 1247 additions and 34 deletions

View File

@@ -19,9 +19,12 @@
"scripts": {
"build": "rm -rf dist && babel src -d dist",
"prepublish": "npm run build",
"lint": "eslint src"
"lint": "eslint src",
"test": "ava",
"flow": "flow"
},
"devDependencies": {
"ava": "^0.25.0",
"babel-cli": "^6.26.0",
"babel-eslint": "^8.0.2",
"babel-preset-env": "^1.6.1",
@@ -43,5 +46,11 @@
"he": "^1.1.1",
"lodash": "^4.17.4",
"striptags": "^3.1.0"
},
"ava": {
"babel": "inherit",
"require": [
"babel-register"
]
}
}