Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/unit/cli/parse-options-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ test('parse options', function (group) {
// end of dbURL TESTS
// ****************

test('throws when dbAdapter is missing and neither dbUrl nor inMemory is set', function (t) {
t.plan(1)

t.throws(function () {
parseOptions({})
}, new Error('Missing required option: dbAdapter'))
})

group.test('inMemory', function (t) {
var config = parseOptions({
public: 'public',
Expand Down