blob: 6103b8442dd4593e9be5f1763b02e55b53aadd94 [file] [log] [blame]
'use strict';
describe('DB Setup', function () {
it('we can find CouchDB with admin credentials', function (done) {
PouchDB.ajax({ url: testUtils.couchHost() + '/_session' },
function (err, res) {
if (err) { return done(err); }
should.exist(res.ok, 'Found CouchDB');
res.userCtx.roles.should.include('_admin', 'Found admin permissions');
done();
}
);
});
it('PouchDB has a version', function () {
PouchDB.version.should.be.a('string');
PouchDB.version.should.match(/\d+\.\d+\.\d+/);
});
});