mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-09 10:22:49 +00:00
Api tests work under node.js
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user