Skip to content

Commit

Permalink
HTTPS invalid passphrase test
Browse files Browse the repository at this point in the history
  • Loading branch information
Giotino committed Sep 13, 2020
1 parent 7ce26ea commit 0b61e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/https.ts
Expand Up @@ -421,7 +421,7 @@ test('invalid key passphrase', withHttpsServer(), async (t, server, got) => {
await request;
t.fail();
} catch (error) {
t.true((error.message as string).includes('bad decrypt'));
t.regex(error.message, /bad decrypt/);
}
} else {
await t.throwsAsync(request, {
Expand Down

0 comments on commit 0b61e3c

Please sign in to comment.