Swap-Aggregator-Subgraph/node_modules/keypair/test.js
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

12 lines
353 B
JavaScript

var keypair = require('./index.js');
var test = require('tape');
test('keypair', function (t) {
var pair = keypair();
t.ok(pair.private, 'private key');
t.assert(/BEGIN RSA PRIVATE KEY/.test(pair.private), 'private header');
t.ok(pair.public, 'public key');
t.assert(/BEGIN RSA PUBLIC KEY/.test(pair.public), 'public header');
t.end();
});