UNPKG

gitconfig

Version:
28 lines (23 loc) 552 B
/** * Test case for get. * Runs with mocha. */ 'use strict' const get = require('../lib/get.js') const co = require('co') const assert = require('assert') describe('get', function () { it('Get config', () => co(function * () { let config = yield get() assert.ok(config) let user = yield get('user') console.log('user', user) })) it('Get config sync', () => co(function * () { let config = get.sync() assert.ok(config) let user = get.sync('user') console.log('user', user) })) }) /* global describe, it */