Api tests work under node.js
This commit is contained in:
parent
7d97bcec58
commit
9d37a83a79
|
@ -365,7 +365,11 @@ describe('OpenPGP.js public api tests', function() {
|
||||||
openpgp.initWorker({ path:'../dist/openpgp.worker.js' });
|
openpgp.initWorker({ path:'../dist/openpgp.worker.js' });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (openpgp.getWorker()) {
|
||||||
tests();
|
tests();
|
||||||
|
} else {
|
||||||
|
it.skip('No Web Worker support --> skipping tests.');
|
||||||
|
}
|
||||||
|
|
||||||
after(function() {
|
after(function() {
|
||||||
openpgp.destroyWorker(); // cleanup worker in case of failure
|
openpgp.destroyWorker(); // cleanup worker in case of failure
|
||||||
|
|
Loading…
Reference in New Issue
Block a user