@crpdo/key
Version:
Streamlines key generation, derivation, and management through its simple and intuitive API
17 lines (15 loc) • 547 B
JavaScript
const BaseKey = require('../lib/base-key')
describe('BaseKey', () => {
describe('#constructor()', () => {
it('should create a BaseKey object with default parameters', () => {
const key = new BaseKey()
expect(key).to.be.an('object')
expect(key).to.be.instanceOf(BaseKey)
})
it('should construct properly', () => {
const baseKey = new BaseKey({ publicKey: 'public', privateKey: 'private' })
expect(baseKey.publicKey).to.equal('public')
expect(baseKey.privateKey).to.equal('private')
})
})
})