Skip to content

Commit

Permalink
add tape to deps, added test command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivshti committed Dec 1, 2015
1 parent a5bb12e commit b8cb2cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Translation strings used for Stremio app",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "tape test/*"
},
"repository": {
"type": "git",
Expand All @@ -15,5 +15,8 @@
"bugs": {
"url": "https://github.com/Stremio/stremio-translations/issues"
},
"homepage": "https://github.com/Stremio/stremio-translations"
"homepage": "https://github.com/Stremio/stremio-translations",
"devDependencies": {
"tape": "^4.2.2"
}
}
7 changes: 7 additions & 0 deletions test/basic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var tape = require("tape");
var fs = require("fs");

fs.readdirSync(".").filter(function(x){ return x.match(".json$") && x.match("-") }).forEach(function(lang) {
tape(lang, function(t) {
})
});

0 comments on commit b8cb2cc

Please sign in to comment.