Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
78133de
refactor: use async/await, const and arrow function
mariangz Mar 26, 2026
249d0e5
refactor: use async/await, const, arrow function and destructuring
mariangz Mar 26, 2026
4b419d3
refactor: use async/await, const and arrow function
mariangz Mar 26, 2026
c833151
refactor: use destructuring const and arrow function
mariangz Mar 26, 2026
83f0078
refactor: use const and arrow function
mariangz Mar 26, 2026
2961b69
refactor: use async/await, const and arrow function
mariangz Mar 26, 2026
522bed8
refactor: use async/await, const
mariangz Mar 27, 2026
1f18ab8
refactor: use async/await, const and arrow function
mariangz Mar 31, 2026
0ca57c0
refactor: use async/await, const and arrow function
mariangz Apr 1, 2026
5267698
refactor: use async/await, const and arrow function
mariangz Apr 1, 2026
af71d8d
refactor: use async/await, const and arrow function
mariangz Apr 1, 2026
04a7698
refactor: use async/await, const and arrow function
mariangz Apr 2, 2026
48ab34a
refactor: use async/await, const and arrow function
mariangz Apr 2, 2026
8facd43
refactor: use async/await, const and arrow function
mariangz Apr 5, 2026
f8e1cf5
refactor: use async/await, const and arrow function
mariangz Apr 5, 2026
2682efb
refactor: use async/await, const and arrow function
mariangz Apr 5, 2026
4563a58
refactor: use async/await, const and arrow function
mariangz Apr 5, 2026
2d99039
refactor: use async/await, const and arrow function
mariangz Apr 5, 2026
fe8631e
refactor: use async/await, const and arrow function
mariangz Apr 6, 2026
463d648
refactor: use async/await, const and arrow function
mariangz Apr 6, 2026
db3386e
refactor: use async/await, const and arrow function
mariangz Apr 6, 2026
b92d95a
refactor: use async/await, const and arrow function
mariangz Apr 6, 2026
9d6e74a
refactor: use async/await, const and arrow function
mariangz Apr 6, 2026
48c95d6
refactor: use async/await, const and arrow function
mariangz Apr 7, 2026
a952420
refactor: use async/await, const and arrow function
mariangz Apr 7, 2026
3178a46
refactor: use async/await, const and arrow function
mariangz Apr 7, 2026
b336544
refactor: fix indentation
mariangz Apr 23, 2026
2389792
refactor: fix promise
mariangz Apr 23, 2026
c523a79
refactor: fix paused var
mariangz Apr 23, 2026
9a43a32
fix refactoring
mariangz Apr 29, 2026
7c80dfd
fix callback
mariangz Apr 29, 2026
86aa4c5
fix refactor
mariangz Apr 30, 2026
c2ecd15
fix: use callbacks instead of async/await
mariangz May 5, 2026
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
45 changes: 22 additions & 23 deletions tests/integration/browser.info.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
'use strict';

var adapters = ['local'];
const adapters = ['local'];

adapters.forEach(function (adapter) {
describe('browser.info.js-' + adapter, function () {
adapters.forEach((adapter) => {
describe(`browser.info.js-${adapter}`, () => {

var dbs = {};
const dbs = {};

beforeEach(function (done) {
beforeEach((done) => {
dbs.name = testUtils.adapterUrl(adapter, 'testdb');
testUtils.cleanup([dbs.name], done);
});

after(function (done) {
after((done) => {
testUtils.cleanup([dbs.name], done);
});

it('adapter-specific info', function () {
var db = new PouchDB(dbs.name);
return db.info().then(function (info) {
switch (db.adapter) {
case 'websql':
info.websql_encoding.should.be.a('string');
info.adapter.should.equal('websql');
break;
case 'idb':
info.idb_attachment_format.should.be.a('string');
info.adapter.should.equal('idb');
break;
default:
should.exist(info); // can't make any guarantees
break;
}
});
it('adapter-specific info', async () => {
const db = new PouchDB(dbs.name);
const info = await db.info();
switch (db.adapter) {
case 'websql':
info.websql_encoding.should.be.a('string');
info.adapter.should.equal('websql');
break;
case 'idb':
info.idb_attachment_format.should.be.a('string');
info.adapter.should.equal('idb');
break;
default:
should.exist(info); // can't make any guarantees
break;
}
});
});
});
Loading
Loading