diff --git a/.gitignore b/.gitignore index da23d0d..7930beb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +bower_components + # Logs logs *.log diff --git a/bower.json b/bower.json index c929ac3..97ae234 100644 --- a/bower.json +++ b/bower.json @@ -32,5 +32,8 @@ "bower_components", "test", "tests" - ] + ], + "dependencies": { + "knuth-shuffle": "~1.0.0" + } } diff --git a/tests/run-in-browser.jade b/tests/run-in-browser.jade new file mode 100644 index 0000000..c90be55 --- /dev/null +++ b/tests/run-in-browser.jade @@ -0,0 +1,9 @@ +html + head + script(src="bower_components/knuth-shuffle/index.js") + script(src="assets/animals.js") + script(src="assets/adjectives.js") + script(src="index.js") + script(src="tests/run-in-node.js") + body + p Look in the console diff --git a/tests/run-in-node.js b/tests/run-in-node.js index bc69b00..a8eb4c1 100644 --- a/tests/run-in-node.js +++ b/tests/run-in-node.js @@ -2,7 +2,7 @@ ;(function (exports) { 'use strict'; - var hri = require('./index').hri + var hri = exports.humanReadableIds || require('../index').hri , i ;