Run tests with browser-run

This commit is contained in:
Emil Bay 2017-06-19 22:39:11 +02:00
parent fa6f2a836c
commit 0f249a7e8f
No known key found for this signature in database
GPG Key ID: AF1CF37B90FBF638
2 changed files with 4 additions and 2 deletions

View File

@ -14,8 +14,8 @@
"sodium-test": "^0.5.1"
},
"scripts": {
"browser": "browserify example.js | browser-run",
"browser-manual": "browserify example.js | browser-run -p 1234",
"browser": "browserify test.js | browser-run",
"browser-manual": "browserify test.js | browser-run -p 1234",
"test": " node test.js"
},
"browserify": {

View File

@ -1 +1,3 @@
require('sodium-test')(require('.'))
if (typeof window !== 'undefined') window.close()