UNPKG

gopass-to-devcenter-connections

Version:

Generate Datastax DevCenter connection list out of a gopass password store

16 lines (13 loc) 522 B
const assert = require('assert') const sinon = require('sinon') const buildDirectoryObject = require('../extendDirectoryObject') describe('buildDirectoryObject', () => { it('should create the folders', () => { const result = buildDirectoryObject({}, [ 'some', 'thing' ]) assert.deepEqual(result, { some: { thing: {} } }) }) it('should create an empty object for an empty path array', () => { const result = buildDirectoryObject({}, [ ]) assert.deepEqual(result, {}) }) })