Move web worker test to new tests directory

This commit is contained in:
Nick Peihl 2017-11-07 10:50:44 -08:00
parent 95bcdb89ea
commit 66ed326c7d
2 changed files with 3 additions and 3 deletions

View File

@ -5,10 +5,10 @@ if (typeof window !== 'undefined') {
var arrConst = new Uint8Array(16)
test('randombytes works in web worker context', function (t) {
var work = require('webworkify')
var w = work(require('./test-worker.js'))
var w = work(require('./tests/webworker.js'))
w.addEventListener('message', function (e) {
var arr = e.data[0]
t.notEqual(arrConst, arr, '')
t.notEqual(arrConst, arr, 'Array should contain random bytes')
t.end()
window.close()
})

View File

@ -1,4 +1,4 @@
var sodium = require('.')
var sodium = require('../')
module.exports = function (self) {
self.addEventListener('message', function (e) {