-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace tape with tap and add code standard
- Loading branch information
Johannes J. Schmidt
committed
Feb 9, 2016
1 parent
fa24919
commit 70bcd02
Showing
15 changed files
with
99 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
var test = require('tape') | ||
var test = require('tap').test | ||
var helper = require('./helper') | ||
var bootstrap = require('..') | ||
|
||
test('options.mapDbName is object', function(t) { | ||
test('options.mapDbName is object', function (t) { | ||
bootstrap(helper.url, helper.source, { | ||
mapDbName: { | ||
'test-couchdb-bootstrap': 'custom-db-name' | ||
} | ||
}, function(error, response) { | ||
t.error(error, 'no error occured') | ||
|
||
}, function (error, response) { | ||
t.error(error) | ||
t.ok(response.secure['custom-db-name'].ok, 'creates security in db with custom name') | ||
t.ok(response.push['custom-db-name'], 'pushes docs to db with custom name') | ||
|
||
t.end() | ||
}) | ||
}) | ||
|
||
test('options.mapDbName is function', function(t) { | ||
test('options.mapDbName is function', function (t) { | ||
bootstrap(helper.url, helper.source, { | ||
mapDbName: function (name) { return name.replace('test', 'foobar') } | ||
}, function(error, response) { | ||
t.error(error, 'no error occured') | ||
|
||
}, function (error, response) { | ||
t.error(error) | ||
t.ok(response.secure['foobar-couchdb-bootstrap'], 'creates security in db with custom name') | ||
t.ok(response.push['foobar-couchdb-bootstrap'], 'pushes docs to db with custom name') | ||
|
||
t.end() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.