diff --git a/test/general/util.js b/test/general/util.js index d805eef1..614cad63 100644 --- a/test/general/util.js +++ b/test/general/util.js @@ -87,6 +87,10 @@ describe('Util unit tests', function() { var data = 'test@example.com'; expect(openpgp.util.isEmailAddress(data)).to.be.true; }); + it('should return true for valid email address', function() { + var data = 'test@xn--wgv.xn--q9jyb4c'; + expect(openpgp.util.isEmailAddress(data)).to.be.true; + }); it('should return false for invalid email address', function() { var data = 'Test User '; expect(openpgp.util.isEmailAddress(data)).to.be.false;