mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-04 13:16:42 +00:00
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' });
|
||||
});
|
||||
|
||||
tests();
|
||||
if (openpgp.getWorker()) {
|
||||
tests();
|
||||
} else {
|
||||
it.skip('No Web Worker support --> skipping tests.');
|
||||
}
|
||||
|
||||
after(function() {
|
||||
openpgp.destroyWorker(); // cleanup worker in case of failure
|
||||
|
Loading…
x
Reference in New Issue
Block a user