本文整理汇总了TypeScript中spawn-pouchdb-server.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了default函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: spawnPouchdbServer
before(function (done) {
this.timeout(10000);
spawnPouchdbServer(
{
port: tmPort,
backend: false,
config: {
admins: { "adminuser": "adminpass" },
file: false
},
log: {
file: false,
level: 'info'
}
}, function (error, server) {
if (error) {
throw error;
} else {
CouchManager = new CouchNode(couchDBDatabase, { user: "adminuser", password: "adminpass" });
done();
}
})
});
示例2: spawnPouchdbServer
before(function (done) {
this.timeout(20000);
spawnPouchdbServer(
{
port: testport,
backend: false,
config: {
admins: { "adminuser": "adminpass" },
file: false
},
log: {
file: false,
level: 'info'
}
}, function (error, server) {
if (error) {
throw error;
} else {
Server = server
CouchAuth = new couchauth({
hostname: 'localhost',
protocol: 'http',
port: testport,
user: 'adminuser',
password: 'adminpass'
});
setTimeout(function () {
done()
}, 1000)
}
})
});
示例3: exec
exec("rm -rf .db", function() {
startPouchServer({
config: {
file: false,
log: {
file: false
}
}
}, function(error, pouch) {
if (error) {
done(error);
}
done();
})
})
示例4: require
const spawnPouchdbServer = require('spawn-pouchdb-server');
spawnPouchdbServer(
{
port: 8741,
backend: false,
config: {
admins: { "adminuser": "adminpass" },
file: false
},
log: {
file: false,
level: 'none'
}
}, function (error, server) {
if (error) {
throw error;
} else {
console.log('started')
}
})