Skip to content

Commit db193f5

Browse files
authored
test.slash_id: assert getAttachment() result (#8923)
* test.slash_id: assert getAttachment() result
1 parent 43193de commit db193f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/test.slash_id.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ adapters.forEach(function (adapter) {
3434
db.putAttachment(docId, attachmentId, info.rev, blob, 'text/plain',
3535
function () {
3636
db.getAttachment(docId, attachmentId, function (err, res) {
37-
testUtils.readBlob(res, function () {
37+
testUtils.readBlob(res, function (data) {
38+
data.should.equal(blobData);
3839
db.get(docId, function (err, res) {
3940
res._id.should.equal(docId);
4041
res._attachments.should.include.keys(attachmentId);

0 commit comments

Comments
 (0)