Skip to content

Commit

Permalink
pouchdb#6230 Revert test attachment change
Browse files Browse the repository at this point in the history
  • Loading branch information
dharders committed Nov 10, 2017
1 parent d310c90 commit 0ac9ba5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/test.attachments.js
Expand Up @@ -3582,7 +3582,7 @@ repl_adapters.forEach(function (adapters) {
var db = new PouchDB(dbs.name);
var remote = new PouchDB(dbs.remote);

for (var i = 0; i < 30; i++) {
for (var i = 0; i < 100; i++) {
doc._attachments[i + '.txt'] = {
data: testUtils.btoa(i.toString()),
content_type: 'text/plain'
Expand All @@ -3597,8 +3597,8 @@ repl_adapters.forEach(function (adapters) {
].map(function (pouch) {
return pouch.get('foo', {attachments: true}).then(function (doc) {
var atts = doc._attachments;
Object.keys(atts).length.should.equal(30);
for (var i = 0; i < 30; i++) {
Object.keys(atts).length.should.equal(100);
for (var i = 0; i < 100; i++) {
var att = atts[i + '.txt'];
should.not.exist(att.stub);
att.data.should.equal(testUtils.btoa(i.toString()));
Expand All @@ -3608,8 +3608,8 @@ repl_adapters.forEach(function (adapters) {
return pouch.get('foo');
}).then(function (doc) {
var atts = doc._attachments;
Object.keys(atts).length.should.equal(30);
for (var i = 0; i < 30; i++) {
Object.keys(atts).length.should.equal(100);
for (var i = 0; i < 100; i++) {
var att = atts[i + '.txt'];
att.stub.should.equal(true);
att.content_type.should.equal('text/plain');
Expand Down

0 comments on commit 0ac9ba5

Please sign in to comment.