loopback-connector-sqlite
Version:
LoopBack SQLite3 Database Connector. LoopBack is an API Mgmt/MBaas platform built on top of express by StrongLoop. It supports the notion of connectors to connect to databases, restful web services, soap web services etc.
19 lines (16 loc) • 401 B
JavaScript
/**
* Created by tushar-chauhan on 13-Mar-2015
*/
require('./init');
var expect = require('chai').expect;
describe("SQLite3 connection test", function(){
it('should connect to sqlite3 DB', function(done){
var ds = getDataSource();
ds.ping(function(err) {
expect(err).to.not.be.undefined;
expect(err).to.be.null;
ds.connector.disconnect();
done();
});
});
});