loopback-connector
Version:
Building blocks for LoopBack connectors
37 lines (30 loc) • 1.15 kB
JavaScript
// Copyright IBM Corp. 2014,2019. All Rights Reserved.
// Node module: loopback-connector
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
;
const assert = require('assert');
const connector = require('../');
describe('loopback-connector', function() {
it('exports Connector', function() {
assert(connector.Connector);
});
it('exports SqlConnector', function() {
assert(connector.SqlConnector);
});
it('exports SQLConnector', function() {
assert(connector.SQLConnector);
});
it('creates aliases to Connector.prototype.execute', function() {
assert.equal(connector.Connector.prototype.execute,
connector.Connector.prototype.query);
assert.equal(connector.Connector.prototype.execute,
connector.Connector.prototype.command);
});
it('creates aliases to SQLConnector.prototype.execute', function() {
assert.equal(connector.SQLConnector.prototype.execute,
connector.SQLConnector.prototype.query);
assert.equal(connector.SQLConnector.prototype.execute,
connector.SQLConnector.prototype.command);
});
});