Skip to content

Commit f545354

Browse files
nolanlawsondaleharvey
authored andcommitted
(#2880) - fix typo in comment/test name
1 parent 52dd16b commit f545354

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/adapters/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ function HttpPouch(opts, callback) {
487487
try {
488488
blob = utils.atob(blob);
489489
} catch (err) {
490-
// it's not base64-encoded, so just use as a regular binary string
490+
// it's not base64-encoded, so throw error
491491
return callback(utils.extend({}, errors.BAD_ARG,
492492
{reason: "Attachments need to be base64 encoded"}));
493493
}

tests/test.attachments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ adapters.forEach(function (adapter) {
365365
});
366366
});
367367

368-
it('Test putAttachment with base64 plaintext kirby', function () {
368+
it('Test putAttachment with base64 plaintext', function () {
369369
var db = new PouchDB(dbs.name);
370370
return db.putAttachment('doc', 'att', null, 'Zm9v', 'text/plain').then(function () {
371371
return db.getAttachment('doc', 'att');
@@ -379,7 +379,7 @@ adapters.forEach(function (adapter) {
379379
});
380380
});
381381

382-
it('Test putAttachment with incorrect base64 kirby', function () {
382+
it('Test putAttachment with incorrect base64', function () {
383383
var db = new PouchDB(dbs.name);
384384
return db.putAttachment('doc', 'att', null, '\u65e5\u672c\u8a9e', 'text/plain').then(function () {
385385
throw new Error('shouldnt have gotten here');

0 commit comments

Comments
 (0)