travist / jsencrypt

A zero-dependency Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation.
http://www.travistidwell.com/jsencrypt
Other
6.69k stars 2.02k forks source link

Mocha ASN1 is not defined #112

Open mattdell opened 6 years ago

mattdell commented 6 years ago

I have added jsencrypt to my project and now my tests are throwing an error. This is what I see in the console:

MOCHA  Testing...

RUNTIME EXCEPTION  Exception occurred while loading your tests

ReferenceError: ASN1 is not defined
    at C:\{path-to-my-project}\node_modules\jsencrypt\bin\jsencrypt.js:3853:1

Anyone encountered this before or know a way to fix it?

lingyuncelia commented 3 years ago

window=global