From 95860a77e341f859c4078f59d049aaaf9ed0cf9d Mon Sep 17 00:00:00 2001 From: martgil <46025304+martgil@users.noreply.github.com> Date: Thu, 12 Jun 2025 10:44:35 +0800 Subject: [PATCH] test: change tld to example.com due to invalid tld format --- test/general/key.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/general/key.js b/test/general/key.js index be320aaa..6e32ecfe 100644 --- a/test/general/key.js +++ b/test/general/key.js @@ -2399,13 +2399,13 @@ function versionSpecificTests() { }); it('Generate key - single userID (special email format)', async function() { - const userID = { name: 'test', email: 'test1@com.com09', comment: '' }; + const userID = { name: 'test', email: 'test1@example.com', comment: '' }; const opt = { userIDs: userID }; const { privateKey: armoredKey } = await openpgp.generateKey(opt); // test also serialisation and parsing const key = await openpgp.readKey({ armoredKey }); expect(key.users.length).to.equal(1); - expect(key.users[0].userID.userID).to.equal('test '); + expect(key.users[0].userID.userID).to.equal('test '); expect(key.users[0].userID.name).to.equal(userID.name); expect(key.users[0].userID.email).to.equal(userID.email); expect(key.users[0].userID.comment).to.equal(userID.comment);