You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
614 B

/* eslint-env mocha */
var path = require('path')
var assert = require('assert')
var applicationConfigPath = require('./')
describe('application-config-path', function () {
it('should return an absolute path', function () {
assert.ok(path.isAbsolute(applicationConfigPath('test')))
})
it('should throw error when called incorrectly', function () {
assert.throws(function () {
applicationConfigPath()
}, TypeError)
assert.throws(function () {
applicationConfigPath(1)
}, TypeError)
assert.throws(function () {
applicationConfigPath({})
}, TypeError)
})
})